improve schema types

This commit is contained in:
Philipp Kühn
2020-03-31 22:57:39 +02:00
parent 208ba890ef
commit c60ad0f107
8 changed files with 19 additions and 19 deletions

View File

@@ -1,4 +1,5 @@
import Extension from './Extension'
import { MarkSpec } from 'prosemirror-model'
export default abstract class Mark extends Extension {
@@ -8,9 +9,7 @@ export default abstract class Mark extends Extension {
public type = 'mark'
schema(): any {
return null
}
abstract schema(): MarkSpec
get schemaType() {
return this.editor.schema.marks[this.name]