@vueditor/tiptap-extension-symbol
v0.1.0-beta.0
Published
A tiptap extension to add symbols for nodes and marks
Maintainers
Readme
Tiptap extension symbol
A tiptap extension to add symbols for nodes and marks
Installation
pnpm add @vueditor/tiptap-extension-symbolor
npm install @vueditor/tiptap-extension-symbolBasic usage
import { Editor } from '@tiptap/core'
import { symbol } from '@vueditor/tiptap-extension-symbol'
const editor = new Editor({
extension: [symbol]
})Options
interface SymbolOptions {
// whether to add name attribute for nodes and marks, default: true
enableName: boolean
// whether to add unique ID attribute for nodes, default: true
enableId: boolean
}Demo
[!TIP] For more detailed usage,see the examples directory or more comprehensive usage: rich text editor.
