This commit is contained in:
Philipp Kühn
2020-03-30 12:40:25 +02:00
parent 9c6e553a2b
commit fd476901c4
9 changed files with 92 additions and 6 deletions

19
packages/core/src/Mark.ts Normal file
View File

@@ -0,0 +1,19 @@
import Extension from './Extension'
export default abstract class Mark extends Extension {
constructor(options = {}) {
super(options)
}
public type = 'mark'
schema(): any {
return null
}
get schemaType() {
return this.editor.schema.marks[this.name]
}
}