rename package folders
This commit is contained in:
46
packages/core/src/Extension.ts
Normal file
46
packages/core/src/Extension.ts
Normal file
@@ -0,0 +1,46 @@
|
||||
import { Editor } from './Editor'
|
||||
|
||||
export default abstract class Extension {
|
||||
|
||||
constructor(options = {}) {
|
||||
this.options = {
|
||||
...this.defaultOptions,
|
||||
...options,
|
||||
}
|
||||
}
|
||||
|
||||
editor!: Editor
|
||||
options: { [key: string]: any } = {}
|
||||
defaultOptions: { [key: string]: any } = {}
|
||||
|
||||
public abstract name: string
|
||||
|
||||
public type = 'extension'
|
||||
|
||||
public created() {}
|
||||
|
||||
public bindEditor(editor: Editor): void {
|
||||
this.editor = editor
|
||||
}
|
||||
|
||||
update(): any {
|
||||
return () => {}
|
||||
}
|
||||
|
||||
plugins(): any {
|
||||
return []
|
||||
}
|
||||
|
||||
inputRules(): any {
|
||||
return []
|
||||
}
|
||||
|
||||
pasteRules(): any {
|
||||
return []
|
||||
}
|
||||
|
||||
keys(): any {
|
||||
return {}
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user