add withAttributes and withMarks option to splitBlock command

This commit is contained in:
Philipp Kühn
2020-11-04 17:01:51 +01:00
parent 1d3de73f82
commit 09ddf954a7
4 changed files with 47 additions and 8 deletions

View File

@@ -131,7 +131,7 @@ export default class CommandManager {
view,
state: this.chainableState(tr, state),
dispatch: shouldDispatch
? () => true
? () => undefined
: undefined,
chain: () => this.createChain(tr),
can: () => this.createCan(tr),