diff --git a/docs/src/css/typography.css b/docs/src/css/typography.css index 4e169e15f..af3f85675 100644 --- a/docs/src/css/typography.css +++ b/docs/src/css/typography.css @@ -171,6 +171,10 @@ code { border-bottom: 1px solid currentColor; } +.eti-editor a { + border-bottom: none; +} + /* Sidebar */ [class*='menu__list-item-collapsible'] a { font-family: var(--swm-title-font); diff --git a/docs/src/examples/BasicStylesEditor.tsx b/docs/src/examples/BasicStylesEditor.tsx index 8adff21ee..b932e2de1 100644 --- a/docs/src/examples/BasicStylesEditor.tsx +++ b/docs/src/examples/BasicStylesEditor.tsx @@ -5,6 +5,7 @@ import type { } from 'react-native-enriched-html'; import { useRef, useState } from 'react'; import { View, StyleSheet, Pressable, Text } from 'react-native'; +import { htmlStyle } from './htmlStyle'; export default function App() { const ref = useRef(null); @@ -73,6 +74,7 @@ export default function App() { setState(e.nativeEvent)} /> diff --git a/docs/src/examples/FirstEditor.tsx b/docs/src/examples/FirstEditor.tsx index 5578d685b..ac4e0fed4 100644 --- a/docs/src/examples/FirstEditor.tsx +++ b/docs/src/examples/FirstEditor.tsx @@ -5,6 +5,7 @@ import type { } from 'react-native-enriched-html'; import { useRef, useState } from 'react'; import { View, StyleSheet, Pressable, Text } from 'react-native'; +import { htmlStyle } from './htmlStyle'; export default function App() { const ref = useRef(null); @@ -15,6 +16,11 @@ export default function App() { setState(e.nativeEvent)} /> diff --git a/docs/src/examples/ImagesEditor.tsx b/docs/src/examples/ImagesEditor.tsx index 2e459522e..2da583356 100644 --- a/docs/src/examples/ImagesEditor.tsx +++ b/docs/src/examples/ImagesEditor.tsx @@ -2,6 +2,7 @@ import { EnrichedTextInput } from 'react-native-enriched-html'; import type { EnrichedTextInputInstance } from 'react-native-enriched-html'; import { useRef } from 'react'; import { View, StyleSheet, Pressable, Text } from 'react-native'; +import { htmlStyle } from './htmlStyle'; export default function App() { const ref = useRef(null); @@ -23,6 +24,7 @@ export default function App() { diff --git a/docs/src/examples/LinksEditor.tsx b/docs/src/examples/LinksEditor.tsx index 55921133c..cd5628c02 100644 --- a/docs/src/examples/LinksEditor.tsx +++ b/docs/src/examples/LinksEditor.tsx @@ -5,6 +5,7 @@ import type { } from 'react-native-enriched-html'; import { useRef, useState } from 'react'; import { View, StyleSheet, Pressable, Text } from 'react-native'; +import { htmlStyle } from './htmlStyle'; // Detect "enriched://" URLs as links. const linkRegex = /enriched:\/\/\S+/g; @@ -33,6 +34,7 @@ export default function App() { setSelection(e.nativeEvent)} diff --git a/docs/src/examples/ListsEditor.tsx b/docs/src/examples/ListsEditor.tsx index 4336969f4..35c5d401f 100644 --- a/docs/src/examples/ListsEditor.tsx +++ b/docs/src/examples/ListsEditor.tsx @@ -5,6 +5,7 @@ import type { } from 'react-native-enriched-html'; import { useRef, useState } from 'react'; import { View, StyleSheet, Pressable, Text } from 'react-native'; +import { htmlStyle } from './htmlStyle'; export default function App() { const ref = useRef(null); @@ -52,6 +53,7 @@ export default function App() { setState(e.nativeEvent)} /> diff --git a/docs/src/examples/MentionEditor.tsx b/docs/src/examples/MentionEditor.tsx index efd3e9216..3444a8a70 100644 --- a/docs/src/examples/MentionEditor.tsx +++ b/docs/src/examples/MentionEditor.tsx @@ -2,6 +2,7 @@ import { EnrichedTextInput } from 'react-native-enriched-html'; import type { EnrichedTextInputInstance } from 'react-native-enriched-html'; import { useRef } from 'react'; import { View, StyleSheet, Pressable, Text } from 'react-native'; +import { htmlStyle } from './htmlStyle'; const user = { id: '1', name: 'John' }; @@ -18,6 +19,7 @@ export default function App() { diff --git a/docs/src/examples/RenderingEditor.tsx b/docs/src/examples/RenderingEditor.tsx index 3040dd015..477a1817e 100644 --- a/docs/src/examples/RenderingEditor.tsx +++ b/docs/src/examples/RenderingEditor.tsx @@ -5,6 +5,7 @@ import type { } from 'react-native-enriched-html'; import { useRef, useState } from 'react'; import { View, StyleSheet, Pressable, Text } from 'react-native'; +import { htmlStyle, enrichedTextHtmlStyle } from './htmlStyle'; export default function App() { const ref = useRef(null); @@ -43,6 +44,7 @@ export default function App() { setState(e.nativeEvent)} /> @@ -74,7 +76,10 @@ export default function App() { - + {html} diff --git a/docs/src/examples/TextAlignmentEditor.tsx b/docs/src/examples/TextAlignmentEditor.tsx index addc7d991..9a92e8732 100644 --- a/docs/src/examples/TextAlignmentEditor.tsx +++ b/docs/src/examples/TextAlignmentEditor.tsx @@ -5,6 +5,7 @@ import type { } from 'react-native-enriched-html'; import { useRef, useState } from 'react'; import { View, StyleSheet, Pressable, Text } from 'react-native'; +import { htmlStyle } from './htmlStyle'; const alignments = ['left', 'center', 'right', 'justify'] as const; @@ -32,6 +33,7 @@ export default function App() { setState(e.nativeEvent)} /> diff --git a/docs/src/examples/TextShortcutsEditor.tsx b/docs/src/examples/TextShortcutsEditor.tsx index d3d26422b..d4903b212 100644 --- a/docs/src/examples/TextShortcutsEditor.tsx +++ b/docs/src/examples/TextShortcutsEditor.tsx @@ -2,6 +2,7 @@ import { EnrichedTextInput } from 'react-native-enriched-html'; import type { EnrichedTextInputInstance } from 'react-native-enriched-html'; import { useRef } from 'react'; import { View, StyleSheet } from 'react-native'; +import { htmlStyle } from './htmlStyle'; export default function App() { const ref = useRef(null); @@ -11,6 +12,7 @@ export default function App() {