Skip to content

Commit

Permalink
fix: fix onBeforeCreate event handler, fix #1236
Browse files Browse the repository at this point in the history
  • Loading branch information
philippkuehn committed Apr 27, 2021
1 parent c90e522 commit 0b67f18
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core/src/Editor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 0b67f18

Please sign in to comment.