A tiptap extension to add symbols for nodes and marks, read the docs to learn more.
pnpm add @vueditor/tiptap-extension-symbol
or
npm install @vueditor/tiptap-extension-symbol
Tip
For more detailed usage,see the examples directory or more comprehensive usage: rich text editor.
import { Editor } from '@tiptap/core'
import { symbol } from '@vueditor/tiptap-extension-symbol'
const editor = new Editor({
extension: [symbol]
})
interface SymbolOptions {
// whether to add name attribute for nodes and marks, default: true
// usually used to customize the css style of nodes and marks
enableName: boolean
// whether to add unique ID attribute for nodes, default: true
enableId: boolean
}