@editorcn/editor 0.5.1 → 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/README.md +1 -2
- package/dist/index.cjs +1 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
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
|
|
package/dist/index.cjs
CHANGED