tiptap/packages/core/src/Mark.ts

20 lines
285 B
TypeScript
Raw Normal View History

2020-03-30 18:40:25 +08:00
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]
}
}