From 25a79b4aea04fcdcbbe4aab096fd83c3ad2e2856 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philipp=20Ku=CC=88hn?= Date: Tue, 22 Sep 2020 15:29:30 +0200 Subject: [PATCH] add broken chain --- packages/core/src/Editor.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/core/src/Editor.ts b/packages/core/src/Editor.ts index cad48bfb..f98ae33a 100644 --- a/packages/core/src/Editor.ts +++ b/packages/core/src/Editor.ts @@ -24,6 +24,7 @@ export type Command = (props: { editor: Editor, tr: Transaction, commands: SingleCommands, + // chain: () => ChainedCommands, state: EditorState, view: EditorView, dispatch: (args?: any) => any, @@ -138,6 +139,7 @@ export class Editor extends EventEmitter { state: this.chainableEditorState(tr, this.state), view: this.view, dispatch: () => false, + // chain: this.chain.bind(this), tr, } @@ -184,6 +186,7 @@ export class Editor extends EventEmitter { state: this.chainableEditorState(tr, this.state), view: this.view, dispatch: () => false, + // chain: this.chain.bind(this), tr, }