tiptap/packages/core/src/Mark.ts
2020-03-31 22:57:39 +02:00

19 lines
322 B
TypeScript

import Extension from './Extension'
import { MarkSpec } from 'prosemirror-model'
export default abstract class Mark extends Extension {
constructor(options = {}) {
super(options)
}
public type = 'mark'
abstract schema(): MarkSpec
get schemaType() {
return this.editor.schema.marks[this.name]
}
}