You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/docs/fundamentals/core-concepts.md
+7-7Lines changed: 7 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -14,8 +14,8 @@ does and help you understand further chapters better.
14
14
every keystroke back into React state. It owns its content on the native side
15
15
and you talk to it through a `ref`.
16
16
17
-
This is deliberate. Rich text changes constantly — every character, selection
18
-
move and style toggle — and round-tripping all of that through JavaScript state
17
+
This is deliberate. Rich text changes constantly - every character, selection
18
+
move and style toggle - and round-tripping all of that through JavaScript state
19
19
would be extremely slow and open to a possible de-synchronization of those states.
20
20
Keeping it native makes the editor fast and stable.
21
21
@@ -56,8 +56,8 @@ All supported and canonical tags are listed in [Supported tags](/fundamentals/ht
56
56
57
57
The library is split into an editor and a viewer:
58
58
59
-
-**`EnrichedTextInput`**— the interactive editor from the previous page.
60
-
-**`EnrichedText`**— a read-only display component that renders the input's
59
+
-**`EnrichedTextInput`**- the interactive editor from the previous page.
60
+
-**`EnrichedText`**- a read-only display component that renders the input's
61
61
HTML.
62
62
63
63
The HTML format that both components expect is identical, what allows you to integrate them seamlessly. A common setup edits in `EnrichedTextInput`, stores the `getHTML` output, and later displays it with `EnrichedText`.
@@ -66,12 +66,12 @@ The HTML format that both components expect is identical, what allows you to int
66
66
67
67
Not every style can be combined with every other. For example, a paragraph can't be both a heading and a list item, code blocks don't support inline formatting such as bold or italic. The editor tracks this and reports it through `onChangeState`, which gives each style three booleans:
68
68
69
-
-**`isActive`**— the style is applied at the current selection. Use it to
69
+
-**`isActive`**- the style is applied at the current selection. Use it to
70
70
highlight a toolbar button.
71
-
-**`isBlocking`**— another active style forbids this one entirely, so toggling
71
+
-**`isBlocking`**- another active style forbids this one entirely, so toggling
72
72
it would do nothing. For example bold is blocked inside a code block. Use it
73
73
to disable a button.
74
-
-**`isConflicting`**— this style would replace an active one if toggled on.
74
+
-**`isConflicting`**- this style would replace an active one if toggled on.
75
75
For example switching a blockquote paragraph to a heading removes the
76
76
blockquote. Use it to hint that the toggle is a swap, not an addition.
0 commit comments