@richhtmleditor/vue 1.1.3 → 1.2.1
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
|
Vue 3 component for Rich HTML Editor, built on [`@richhtmleditor/core`](https://www.npmjs.com/package/@richhtmleditor/core). WYSIWYG authoring with toolbar presets, slot-based custom tools, and enterprise plugin support.
|
|
4
4
|
|
|
5
|
-
**Current release: 1.1
|
|
5
|
+
**Current release: 1.2.1** — Depends on `@richhtmleditor/core` **^1.2.1**.
|
|
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.1
|
|
11
|
+
### What's in 1.2.1
|
|
12
12
|
|
|
13
13
|
- **`RichHtmlEditor`** — Vue 3 `defineComponent` wrapper around `createEditor`
|
|
14
14
|
- **Props** — `content`, `editable`, `dark`, `theme`, `toolbar`, `features`, `plugins`
|
|
@@ -16,6 +16,29 @@ Vue 3 component for Rich HTML Editor, built on [`@richhtmleditor/core`](https://
|
|
|
16
16
|
- **Events** — `@change` and `@save` emit `EditorContent`
|
|
17
17
|
- Re-exports all public symbols from `@richhtmleditor/core`
|
|
18
18
|
|
|
19
|
+
### New in 1.2.1
|
|
20
|
+
|
|
21
|
+
| Feature | Vue usage |
|
|
22
|
+
| --- | --- |
|
|
23
|
+
| **Callout blocks** — info / warning / success / error styled blocks | `editorRef.value.commands.insertCallout("info")` or toolbar **Callout** dropdown |
|
|
24
|
+
| **Embed blocks** — YouTube, Loom, Figma auto-embed | Paste URL to auto-embed; or `editorRef.value.commands.insertEmbed(url)` |
|
|
25
|
+
| **Word goal + progress bar** | `editorRef.value.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.value.commands.importMarkdown()` — opens `.md` file picker |
|
|
30
|
+
| **Case change** | `editorRef.value.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.value.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.value.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 dep: `vue` ^3.5. Import [`@richhtmleditor/themes`](https://www.npmjs.com/package/@richhtmleditor/themes) CSS in your app entry.
|
|
20
43
|
|
|
21
44
|
**Keywords:** `richhtmleditor` `vue` `vue3` `wysiwyg` `rich-text-editor`
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@richhtmleditor/vue",
|
|
3
|
-
"version": "1.1
|
|
3
|
+
"version": "1.2.1",
|
|
4
4
|
"description": "Vue 3 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
|
"vue": "^3.5.0"
|