fix some bugs

This commit is contained in:
Philipp Kühn
2020-11-16 17:25:55 +01:00
parent 163c8f3034
commit 0e2815b317
3 changed files with 7 additions and 3 deletions

View File

@@ -2,6 +2,7 @@ import { EditorState, Transaction } from 'prosemirror-state'
import {
SingleCommands,
ChainedCommands,
CanCommands,
Editor,
CommandSpec,
} from './Editor'
@@ -110,7 +111,7 @@ export default class CommandManager {
return {
...formattedCommands,
chain: () => this.createChain(tr, dispatch),
}
} as CanCommands
}
public buildProps(tr: Transaction, shouldDispatch = true) {