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