default callback for custom editor events added
This commit is contained in:
@@ -82,7 +82,7 @@ export default class Editor extends Emitter {
|
||||
}
|
||||
|
||||
this.events.forEach(name => {
|
||||
this.on(name, this.options[camelCase(`on ${name}`)])
|
||||
this.on(name, this.options[camelCase(`on ${name}`)] || (() => {}))
|
||||
})
|
||||
|
||||
this.emit('init', {
|
||||
|
||||
Reference in New Issue
Block a user