@editorcn/editor 0.5.0 → 0.5.2
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/CHANGELOG.md +16 -0
- package/README.md +1 -2
- package/dist/index.cjs +703 -356
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +6 -3
- package/dist/index.d.ts +6 -3
- package/dist/index.js +577 -230
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# @editorcn/editor
|
|
2
2
|
|
|
3
|
+
## 0.5.1
|
|
4
|
+
|
|
5
|
+
### Fixes
|
|
6
|
+
|
|
7
|
+
- Dialog controls opened from the toolbar (for example the YouTube embed) get the trigger's ref, `aria-*` attributes and click event, so focus returns to the button when the dialog closes.
|
|
8
|
+
- The toggle used by toolbar controls forwards its ref on React 18.
|
|
9
|
+
|
|
10
|
+
### Dependencies
|
|
11
|
+
|
|
12
|
+
- `@tiptap/react` peer range is now `>=3.0.1 <4`. The bubble menu imports `@tiptap/react/menus`, which 3.0.0 doesn't export.
|
|
13
|
+
- `lucide-react` range is now `>=0.400.0 <2.0.0`, so projects on lucide-react 1.x don't get a second copy.
|
|
14
|
+
|
|
15
|
+
### Changes
|
|
16
|
+
|
|
17
|
+
- No visible change to the icons. `icons.tsx` is now shared with the shadcn registry (where it follows the project's `iconLibrary`), and the npm build still renders lucide icons.
|
|
18
|
+
|
|
3
19
|
## 0.5.0
|
|
4
20
|
|
|
5
21
|
The editor chrome is now styled with Tailwind classes instead of a hand-written stylesheet. It looks the same, but npm installs need two lines of Tailwind setup.
|
package/README.md
CHANGED
|
@@ -53,13 +53,12 @@ Make sure your `components.json` includes the editorcn registry:
|
|
|
53
53
|
|
|
54
54
|
import { useEditor } from "@tiptap/react";
|
|
55
55
|
import { StarterKit } from "@tiptap/starter-kit";
|
|
56
|
-
import { Underline } from "@tiptap/extension-underline";
|
|
57
56
|
import { RichTextEditor, Link } from "@editorcn/editor";
|
|
58
57
|
import "@editorcn/editor/style.css";
|
|
59
58
|
|
|
60
59
|
export function MyEditor() {
|
|
61
60
|
const editor = useEditor({
|
|
62
|
-
extensions: [StarterKit, Link
|
|
61
|
+
extensions: [StarterKit.configure({ link: false }), Link],
|
|
63
62
|
content: "<p>Start typing...</p>",
|
|
64
63
|
});
|
|
65
64
|
|