mirror of
https://github.com/ueberdosis/tiptap.git
synced 2024-12-22 08:07:50 +08:00
53 lines
680 B
TypeScript
53 lines
680 B
TypeScript
|
import { Editor } from './Editor'
|
||
|
|
||
|
export default class Extension {
|
||
|
|
||
|
editor: any
|
||
|
options: { [key: string]: any } = {}
|
||
|
defaultOptions: { [key: string]: any } = {}
|
||
|
|
||
|
constructor(options = {}) {
|
||
|
this.options = {
|
||
|
...this.defaultOptions,
|
||
|
...options,
|
||
|
}
|
||
|
}
|
||
|
|
||
|
init(): any {
|
||
|
return null
|
||
|
}
|
||
|
|
||
|
bindEditor(editor: Editor): void {
|
||
|
this.editor = editor
|
||
|
}
|
||
|
|
||
|
get name(): any {
|
||
|
return null
|
||
|
}
|
||
|
|
||
|
get type(): any {
|
||
|
return 'extension'
|
||
|
}
|
||
|
|
||
|
get update(): any {
|
||
|
return () => {}
|
||
|
}
|
||
|
|
||
|
get plugins(): any {
|
||
|
return []
|
||
|
}
|
||
|
|
||
|
inputRules(): any {
|
||
|
return []
|
||
|
}
|
||
|
|
||
|
pasteRules(): any {
|
||
|
return []
|
||
|
}
|
||
|
|
||
|
keys(): any {
|
||
|
return {}
|
||
|
}
|
||
|
|
||
|
}
|