From 525619ad267e52551bc5a8383ce4b097484f851b Mon Sep 17 00:00:00 2001 From: Chrissi2812 Date: Mon, 3 Jun 2019 12:16:07 +0200 Subject: [PATCH] default callback for custom editor events added --- packages/tiptap/src/Editor.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/tiptap/src/Editor.js b/packages/tiptap/src/Editor.js index 0405cd6a8..09341c3a2 100644 --- a/packages/tiptap/src/Editor.js +++ b/packages/tiptap/src/Editor.js @@ -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', {