Skip to content

vueditor/tiptap-extension-symbol

Repository files navigation

Tiptap extension symbol

GitHub License NPM Version NPM Downloads GitHub Repo stars

A tiptap extension to add symbols for nodes and marks, read the docs to learn more.

Installation

pnpm add @vueditor/tiptap-extension-symbol

or

npm install @vueditor/tiptap-extension-symbol

Basic usage

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]
})

Options

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
}