UNPKG

tiptap

Version:

A rich-text editor for Vue.js

47 lines (35 loc) 500 B
export default class Extension { constructor(options = {}) { this.options = { ...this.defaultOptions, ...options, } } init() { return null } bindEditor(editor = null) { this.editor = editor } get name() { return null } get type() { return 'extension' } get defaultOptions() { return {} } get plugins() { return [] } inputRules() { return [] } pasteRules() { return [] } keys() { return {} } }