Return true from delete block commands (to prevent any other commands to run)

This commit is contained in:
Jonatan Heyman 2025-04-10 19:36:33 +02:00
parent ae4d86b9f3
commit ffec1c498d

View File

@ -360,6 +360,7 @@ export const deleteBlock = (editor) => ({state, dispatch}) => {
selection: EditorSelection.cursor(newSelection),
annotations: [heynoteEvent.of(DELETE_BLOCK)],
}))
return true
}
export const deleteBlockSetCursorPreviousBlock = (editor) => ({state, dispatch}) => {
@ -380,4 +381,5 @@ export const deleteBlockSetCursorPreviousBlock = (editor) => ({state, dispatch})
selection: EditorSelection.cursor(newSelection),
annotations: [heynoteEvent.of(DELETE_BLOCK)],
}))
return true
}