mirror of
https://github.com/ueberdosis/tiptap.git
synced 2024-12-23 00:27:49 +08:00
19 lines
322 B
TypeScript
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]
|
|
}
|
|
|
|
}
|