From 4c392d5759f651faa0fe44cdf1acd246c4d23c2c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philipp=20Ku=CC=88hn?= Date: Mon, 21 Sep 2020 20:11:32 +0200 Subject: [PATCH] refactoring --- packages/core/src/Editor.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/core/src/Editor.ts b/packages/core/src/Editor.ts index e9f28dfc..35cecfda 100644 --- a/packages/core/src/Editor.ts +++ b/packages/core/src/Editor.ts @@ -123,7 +123,7 @@ export class Editor extends EventEmitter { editor: this.proxy, state: this.chainableEditorState(tr, this.state), view: this.view, - dispatch: () => {}, + dispatch: () => false, tr, }) @@ -156,7 +156,7 @@ export class Editor extends EventEmitter { editor: this.proxy, state: this.chainableEditorState(tr, this.state), view: this.view, - dispatch: () => {}, + dispatch: () => false, tr, }