add support for nested chained commands

This commit is contained in:
Philipp Kühn
2020-09-22 23:06:37 +02:00
parent a865ec4b4e
commit 389756d258
2 changed files with 16 additions and 9 deletions

View File

@@ -25,7 +25,7 @@ export type Command = (props: {
editor: Editor,
tr: Transaction,
commands: SingleCommands,
// chain: () => ChainedCommands,
chain: () => ChainedCommands,
state: EditorState,
view: EditorView,
dispatch: (args?: any) => any,