@richhtmleditor/react 1.1.2 → 1.2.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 +25 -2
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
React component for Rich HTML Editor, built on [`@richhtmleditor/core`](https://www.npmjs.com/package/@richhtmleditor/core). Drop-in WYSIWYG with toolbar presets, dark mode, custom React toolbar tools, and enterprise plugin support.
|
|
4
4
|
|
|
5
|
-
**Current release: 1.
|
|
5
|
+
**Current release: 1.2.0** — Depends on `@richhtmleditor/core` **^1.2.0**.
|
|
6
6
|
|
|
7
7
|
**Repository:** [github.com/rajkishorsahu89/richhtmleditor](https://github.com/rajkishorsahu89/richhtmleditor)
|
|
8
8
|
|
|
9
9
|
**Demo:** [richhtmleditor.vercel.app](https://richhtmleditor.vercel.app/) — [demo](https://richhtmleditor.vercel.app/demo) · [guide](https://richhtmleditor.vercel.app/guide) · [API](https://richhtmleditor.vercel.app/api). Doc Preview joint demo: [doc-preview-app.vercel.app/demo/enterprise](https://doc-preview-app.vercel.app/demo/enterprise)
|
|
10
10
|
|
|
11
|
-
### What's in 1.
|
|
11
|
+
### What's in 1.2.0
|
|
12
12
|
|
|
13
13
|
- **`RichHtmlEditor`** — React wrapper around `createEditor` with lifecycle-safe mount/destroy
|
|
14
14
|
- **Controlled content** — `content` prop syncs HTML into the editor instance
|
|
@@ -16,6 +16,29 @@ React component for Rich HTML Editor, built on [`@richhtmleditor/core`](https://
|
|
|
16
16
|
- **Plugins** — pass `plugins` for AI, comments, workflows, and collab
|
|
17
17
|
- Re-exports all public symbols from `@richhtmleditor/core`
|
|
18
18
|
|
|
19
|
+
### New in 1.2.0
|
|
20
|
+
|
|
21
|
+
| Feature | React usage |
|
|
22
|
+
| --- | --- |
|
|
23
|
+
| **Callout blocks** — info / warning / success / error styled blocks | `editorRef.current.commands.insertCallout("info")` or toolbar **Callout** dropdown |
|
|
24
|
+
| **Embed blocks** — YouTube, Loom, Figma auto-embed | Paste URL to auto-embed; or `editorRef.current.commands.insertEmbed(url)` |
|
|
25
|
+
| **Word goal + progress bar** | `editorRef.current.commands.setWordGoal(500)` — progress bar in status bar |
|
|
26
|
+
| **Reading time** | Displayed automatically: status bar shows `~N min read` |
|
|
27
|
+
| **Dark mode toggle** | `dark={true}` prop **or** toolbar `toggleDarkMode` button |
|
|
28
|
+
| **Markdown shortcuts** | Always on — `## ` → H2, `**bold**`, `_italic_`, `` ` ``code`` ` `` |
|
|
29
|
+
| **Markdown import** | `editorRef.current.commands.importMarkdown()` — opens `.md` file picker |
|
|
30
|
+
| **Case change** | `editorRef.current.commands.caseChange("upper" \| "lower" \| "title" \| "sentence")` |
|
|
31
|
+
| **Smart typography** | Auto-converts straight quotes, `--` → em dash, `...` → ellipsis |
|
|
32
|
+
| **Autolink** | URLs auto-link on paste and after typing a space |
|
|
33
|
+
| **Task lists** | `features={{ taskList: true }}` — checkbox bullet lists |
|
|
34
|
+
| **XLSX / CSV paste** | Paste from Excel or Google Sheets → inserts a table |
|
|
35
|
+
| **Table sort** | Click any `<th>` to sort column; click again to reverse |
|
|
36
|
+
| **Undo history panel** | `editorRef.current.commands.undoHistoryPanel()` — sidebar with full undo stack |
|
|
37
|
+
| **TOC navigation** | Click a TOC entry in the outline panel → scrolls to that heading |
|
|
38
|
+
| **Preview modal** | `editorRef.current.commands.previewModal()` — read-only rendered preview overlay |
|
|
39
|
+
| **Autoresize** | `features={{ autoresize: true }}` — editor grows with content |
|
|
40
|
+
| **Mobile touch** | Touch-optimised toolbar; 40 px tap targets on `pointer: coarse` devices |
|
|
41
|
+
|
|
19
42
|
> Ships as ESM with TypeScript declarations. Peer deps: `react` and `react-dom` ^18 \|\| ^19. Import [`@richhtmleditor/themes`](https://www.npmjs.com/package/@richhtmleditor/themes) CSS in your app entry.
|
|
20
43
|
|
|
21
44
|
**Keywords:** `richhtmleditor` `react` `wysiwyg` `rich-text-editor` `component`
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@richhtmleditor/react",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.2.0",
|
|
4
4
|
"description": "React wrapper for Rich HTML Editor.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"prepack": "node ../../scripts/assert-pack-ready.mjs"
|
|
22
22
|
},
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@richhtmleditor/core": "^1.
|
|
24
|
+
"@richhtmleditor/core": "^1.2.0"
|
|
25
25
|
},
|
|
26
26
|
"peerDependencies": {
|
|
27
27
|
"react": "^18.0.0 || ^19.0.0",
|