Skip to content

Commit 5fd037c

Browse files
hejsztynxCopilot
andauthored
Apply suggestions from code review
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
1 parent 2aaaf9b commit 5fd037c

4 files changed

Lines changed: 9 additions & 4 deletions

File tree

docs/docs/rich-text-formatting/basic-styles.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ In [Your first editor](/fundamentals/your-first-editor) you wired up a single
1313
`toggle` method on the `ref` changes the text, and `onChangeState` reports back
1414
whether the style is active. The only exceptions to that rule are **mentions**,
1515
**links** and **inline images**, which work a bit differently. They cannot be toggled
16-
on/off on any text - they require additional data to be valid,but you'll learn more
16+
on/off on any text - they require additional data to be valid, but you'll learn more
1717
about them in further sections. This page walks through the rest of the basic rich
1818
text styles and the one core distinction that shapes how they behave - **inline**
1919
versus **paragraph** formatting.

docs/docs/rich-text-formatting/lists.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ flag in `onChangeState`, exactly as described in
2525

2626
:::note
2727

28-
The library does not support nested lists. You can only create a single level list. If you try to insert a nested list in any way, e.g. by calling `setValue` on the editor's `ref`, the list will get flattened by the [normalizer](/fundamentals/core-concepts#normalization).
28+
The library does not support nested lists. You can only create a single-level list. If you try to insert a nested list in any way, e.g. by calling `setValue` on the editor's `ref`, the list will get flattened by the [normalizer](/fundamentals/core-concepts#normalization).
2929

3030
:::
3131

@@ -56,7 +56,7 @@ checkbox - you don't need to wire anything up for that.
5656

5757
Type a few lines, place the cursor on one (or select several), and toggle each
5858
list type. Notice how switching from **Bulleted** to **Numbered** swaps the style
59-
instead of stacking, inserting a new line keeps the list format by creating an another element and how tapping a checkbox in the checkbox list toggles just that item.
59+
instead of stacking. Inserting a new line preserves the list format by creating another item, and tapping a checkbox toggles just that item.
6060

6161
<InteractiveExample src={ListsEditorSrc} component={ListsEditor} />
6262

docs/docs/rich-text-formatting/text-alignment.mdx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,11 @@ The five values are:
2222
- **`justify`** - stretch each line to fill the full width.
2323
- **`auto`** - reset to the system's natural alignment.
2424

25+
:::note
26+
27+
On Android, `justify` is not supported. Calling `setTextAlignment('justify')` results in natural alignment (the same as `auto`).
28+
29+
:::
2530
Unlike the paragraph styles from [Basic styles](/rich-text-formatting/basic-styles),
2631
text alignment does not report its state with the `isActive` / `isConflicting` booleans in `onChangeState`. Instead it exposes `alignment` with its relevant string value.
2732

docs/docs/rich-text-formatting/text-shortcuts.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ things:
4747

4848
The usual [style rules](/rich-text-formatting/basic-styles#paragraph-styles) still
4949
apply to shortcut-triggered styles. If the target style is **blocked** by an
50-
active one (e.g. bold inside a code block).
50+
active one (e.g. bold inside a code block), the shortcut has no effect.
5151

5252
:::
5353

0 commit comments

Comments
 (0)