mirror of
https://github.com/ueberdosis/tiptap.git
synced 2025-08-06 13:38:49 +08:00
fix: fix onBeforeCreate event handler, fix #1236
This commit is contained in:
parent
c90e522934
commit
0b67f18e3a
@ -70,7 +70,7 @@ export class Editor extends EventEmitter {
|
||||
this.createExtensionManager()
|
||||
this.createCommandManager()
|
||||
this.createSchema()
|
||||
this.on('beforeCreate', this.options.onCreate)
|
||||
this.on('beforeCreate', this.options.onBeforeCreate)
|
||||
this.emit('beforeCreate', { editor: this })
|
||||
this.createView()
|
||||
this.injectCSS()
|
||||
|
Loading…
Reference in New Issue
Block a user