mirror of
https://github.com/heyman/heynote.git
synced 2025-06-28 13:31:38 +02:00
Return true from delete block commands (to prevent any other commands to run)
This commit is contained in:
parent
ae4d86b9f3
commit
ffec1c498d
@ -360,6 +360,7 @@ export const deleteBlock = (editor) => ({state, dispatch}) => {
|
|||||||
selection: EditorSelection.cursor(newSelection),
|
selection: EditorSelection.cursor(newSelection),
|
||||||
annotations: [heynoteEvent.of(DELETE_BLOCK)],
|
annotations: [heynoteEvent.of(DELETE_BLOCK)],
|
||||||
}))
|
}))
|
||||||
|
return true
|
||||||
}
|
}
|
||||||
|
|
||||||
export const deleteBlockSetCursorPreviousBlock = (editor) => ({state, dispatch}) => {
|
export const deleteBlockSetCursorPreviousBlock = (editor) => ({state, dispatch}) => {
|
||||||
@ -380,4 +381,5 @@ export const deleteBlockSetCursorPreviousBlock = (editor) => ({state, dispatch})
|
|||||||
selection: EditorSelection.cursor(newSelection),
|
selection: EditorSelection.cursor(newSelection),
|
||||||
annotations: [heynoteEvent.of(DELETE_BLOCK)],
|
annotations: [heynoteEvent.of(DELETE_BLOCK)],
|
||||||
}))
|
}))
|
||||||
|
return true
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user