add mark
This commit is contained in:
19
packages/core/src/Mark.ts
Normal file
19
packages/core/src/Mark.ts
Normal file
@@ -0,0 +1,19 @@
|
||||
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]
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user