remove async commands (WIP)
This commit is contained in:
@@ -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()
|
||||
}
|
||||
@@ -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()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user