remove async commands (WIP)

This commit is contained in:
Philipp Kühn
2020-09-11 17:30:55 +02:00
parent 5d3a2e900b
commit 6a04f9746d
5 changed files with 59 additions and 28 deletions

View File

@@ -61,5 +61,8 @@ export default (next: Function, editor: Editor) => (position = null) => {
view.dispatch(transaction)
view.focus()
//@ts-ignore
// console.log(bla)
// return 'FOCUS'
next()
}

View File

@@ -15,6 +15,6 @@ export default (next: Function, editor: Editor) => (typeOrName: string | NodeTyp
const { view, state, schema } = editor
const type = getNodeType(typeOrName, schema)
splitListItem(type)(state, view.dispatch)
next()
return splitListItem(type)(state, view.dispatch)
// next()
}