0.1.0-beta.0 • Published 10 months ago

@vueditor/tiptap-extension-symbol v0.1.0-beta.0

Weekly downloads
-
License
MIT
Repository
-
Last release
10 months ago

Tiptap extension symbol

GitHub License NPM Version NPM Downloads GitHub Repo stars

A tiptap extension to add symbols for nodes and marks

Installation

pnpm add @vueditor/tiptap-extension-symbol

or

npm install @vueditor/tiptap-extension-symbol

Basic 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.

0.1.0-beta.0

10 months ago