Skip to content

Commit 8c5465f

Browse files
[update] address review on v2.1 docs
- whats_new: add drag-and-drop image insertion and word/line deletion shortcuts - whats_new: move clipboard support to New functionality, fix wording - whats_new: replace Fixes with inline-paste and image-drop bug fixes - index: add Delete word/line shortcuts and Indentation table to keyboard shortcuts - triggers: align id type with source TID (string | number)
1 parent b392a91 commit 8c5465f

3 files changed

Lines changed: 17 additions & 4 deletions

File tree

docs/api/config/triggers.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@ When a user types a configured character (for example, `@` or `#`), RichText ope
1717
~~~jsx {}
1818
triggers?: Array<{
1919
trigger: string,
20-
data: Array<{ id?: string; label?: string; url?: string }>
20+
data: Array<{ id?: string | number; label?: string; url?: string }>
2121
| ((query: string) =>
22-
Array<{ id?: string; label?: string; url?: string }>
23-
| Promise<Array<{ id?: string; label?: string; url?: string }>>),
22+
Array<{ id?: string | number; label?: string; url?: string }>
23+
| Promise<Array<{ id?: string | number; label?: string; url?: string }>>),
2424
showTrigger?: boolean,
2525
action?: (item) => void
2626
}>;

docs/index.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,15 @@ The RichText editor supports a set of common keyboard shortcuts for faster forma
148148
| Cut | `Ctrl+X` | `⌘X` |
149149
| Copy | `Ctrl+C` | `⌘C` |
150150
| Paste | `Ctrl+V` | `⌘V` |
151+
| Delete word | `Ctrl+Backspace` / `Ctrl+Delete` | `⌥⌫` / `⌥⌦` |
152+
| Delete line || `⌘⌫` / `⌘⌦` |
153+
154+
### Indentation
155+
156+
| Action | Windows/Linux | macOS |
157+
|----------------------|---------------|-------|
158+
| Indent / nest list | `Tab` | `` |
159+
| Outdent / lift list | `Shift+Tab` | `⇧⇥` |
151160

152161
### Special actions
153162

docs/news/whats_new.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,13 @@ Released on June X, 2026
1111
### New functionality
1212

1313
- The [`imageUploadUrl`](api/config/image-upload-url.md) is optional: when omitted, images are inserted inline as base64 data URLs with no server required
14+
- Drag-and-drop image insertion: drop an image file directly into the editor area
1415
- Markdown support: parse and serialize editor content as Markdown via the `markdown` encoder in [`setValue()`](api/methods/set-value.md), [`getValue()`](api/methods/get-value.md), and [`insertValue()`](api/methods/insert-value.md) methods
1516
- Mentions, tags, and custom dropdown triggers via the [`triggers`](api/config/triggers.md) property: type a character such as `@`, `#`, `/`, or `:` to open a suggestion dropdown and insert the selected item as a non-editable token (see the [Mentions and tags](guides/mentions_and_tags.md) guide)
1617
- Custom rendering for suggestion items through the [`triggerTemplate`](api/config/trigger-template.md) property (for example, an avatar with a name and an email)
1718
- Custom action when a user selects a trigger: run your own code (insert an emoji, trigger a slash-style command, and more) instead of inserting a token
19+
- Clipboard support (copy, cut, and paste) that preserves formatting between RichText instances and inserts external content as plain text
20+
- Word- and line-scope deletion shortcuts: delete the previous/next word with `Ctrl+Backspace` / `Ctrl+Delete` (Windows/Linux) or `Opt+Backspace` / `Opt+Delete` (macOS); delete the previous/next visual line with `Cmd+Backspace` / `Cmd+Delete` (macOS only)
1821

1922
### New API
2023

@@ -35,7 +38,8 @@ Released on June X, 2026
3538

3639
### Fixes
3740

38-
- Clipboard actions (copy, cut, and paste) preserves formatting between RichText instances and inserts external content as plain text
41+
- Issues with pasting inline content (including content placed inside or near inline elements such as mentions and images)
42+
- Dropping an image onto itself throws an error
3943

4044
## Version 2.0.6
4145

0 commit comments

Comments
 (0)