fix: fix onBeforeCreate event handler, fix #1236

This commit is contained in:
Philipp Kühn 2021-04-27 21:52:22 +02:00
parent c90e522934
commit 0b67f18e3a

View File

@ -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()