fix: fix onBeforeCreate event handler, fix #1236
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user