fix: fix onBeforeCreate event handler, fix #1236
This commit is contained in:
@@ -70,7 +70,7 @@ export class Editor extends EventEmitter {
|
|||||||
this.createExtensionManager()
|
this.createExtensionManager()
|
||||||
this.createCommandManager()
|
this.createCommandManager()
|
||||||
this.createSchema()
|
this.createSchema()
|
||||||
this.on('beforeCreate', this.options.onCreate)
|
this.on('beforeCreate', this.options.onBeforeCreate)
|
||||||
this.emit('beforeCreate', { editor: this })
|
this.emit('beforeCreate', { editor: this })
|
||||||
this.createView()
|
this.createView()
|
||||||
this.injectCSS()
|
this.injectCSS()
|
||||||
|
|||||||
Reference in New Issue
Block a user