@mdaemon/html-editor-react 1.5.0 → 1.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +11 -3
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -255,7 +255,7 @@ The `config` prop (or `useEditor`'s `config` option) accepts an `EditorConfig` o
|
|
|
255
255
|
| `paste_from_office` | `boolean` | `true` | Clean and preserve formatting when pasting from Microsoft Word/Excel. |
|
|
256
256
|
| `speech_to_text` | `boolean` | `true` | Enable the `speechtotext` and `dictate` toolbar buttons (requires the Web Speech API). |
|
|
257
257
|
| `convert_unsafe_embeds` | `boolean` | `true` | Sanitize embedded content. |
|
|
258
|
-
| `format_empty_lines` | `boolean` | `true` |
|
|
258
|
+
| `format_empty_lines` | `boolean` | `true` | Preserve blank lines outside the editor. `getContent()` fills each empty block with a `<br>` (bare empty blocks otherwise collapse to zero height in mail clients) and `setContent()` strips it back out, so `setContent(getContent(x))` is stable across round-trips. Set `false` to pass output through unchanged. |
|
|
259
259
|
| `includeTemplates` | `boolean` | `false` | Show the template dropdown. |
|
|
260
260
|
| `templates` | `Template[]` | `[]` | Predefined HTML templates. |
|
|
261
261
|
| `dropbox` | `boolean` | `false` | Enable Dropbox integration. |
|
|
@@ -518,8 +518,8 @@ Buttons after `||` begin collapsed behind a toggle (`...`) button.
|
|
|
518
518
|
| `superscript` | Toggle superscript |
|
|
519
519
|
| `bullist` | Bullet list |
|
|
520
520
|
| `numlist` | Numbered list |
|
|
521
|
-
| `outdent` | Decrease indent |
|
|
522
|
-
| `indent` | Increase indent |
|
|
521
|
+
| `outdent` | Decrease indent (lifts a list item, or removes block `margin-left`) |
|
|
522
|
+
| `indent` | Increase indent (nests a list item, or adds block `margin-left`) |
|
|
523
523
|
| `blockquote` | Toggle block quote |
|
|
524
524
|
| `fontfamily` | Font family dropdown |
|
|
525
525
|
| `fontsize` | Font size dropdown |
|
|
@@ -652,6 +652,14 @@ setGetFileSrc((path) => `https://cdn.example.com${path}`);
|
|
|
652
652
|
| Ctrl/Cmd + Z | Undo |
|
|
653
653
|
| Ctrl/Cmd + Shift + Z | Redo |
|
|
654
654
|
| Ctrl/Cmd + F | Find & Replace |
|
|
655
|
+
| Tab | Indent — nests a list item, moves to the next table cell, or adds block indent |
|
|
656
|
+
| Shift + Tab | Outdent — lifts a list item, moves to the previous table cell, or removes block indent |
|
|
657
|
+
| Esc, then Tab | Move focus to the next element outside the editor (keyboard escape) |
|
|
658
|
+
| Esc, then Shift + Tab | Move focus to the previous element outside the editor |
|
|
659
|
+
|
|
660
|
+
> `Tab` is captured for indentation, so the `Esc`-then-`Tab` sequence provides a
|
|
661
|
+
> keyboard escape (WCAG 2.1.2, "No Keyboard Trap"). `Esc` arms the escape for a single
|
|
662
|
+
> key press; any other key disarms it.
|
|
655
663
|
|
|
656
664
|
## Form Integration
|
|
657
665
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mdaemon/html-editor-react",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.6.0",
|
|
4
4
|
"description": "React wrapper for MDHTMLEditor",
|
|
5
5
|
"homepage": "https://github.com/mdaemon-technologies/MDHTMLEditor-react",
|
|
6
6
|
"repository": {
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
"react-dom": "^19.0.0 || ^18.0.0"
|
|
54
54
|
},
|
|
55
55
|
"dependencies": {
|
|
56
|
-
"@mdaemon/html-editor": "^1.
|
|
56
|
+
"@mdaemon/html-editor": "^1.10.0",
|
|
57
57
|
"@tiptap/react": "^3.27.4"
|
|
58
58
|
},
|
|
59
59
|
"devDependencies": {
|