mirror of
https://github.com/ueberdosis/tiptap.git
synced 2024-12-15 19:29:02 +08:00
default callback for custom editor events added
This commit is contained in:
parent
3246b84229
commit
525619ad26
@ -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', {
|
||||
|
Loading…
Reference in New Issue
Block a user