diff --git a/packages/editor-ui/src/components/CodeNodeEditor/baseExtensions.ts b/packages/editor-ui/src/components/CodeNodeEditor/baseExtensions.ts index cf1e972d8d7e8..c5a3c4816a0fc 100644 --- a/packages/editor-ui/src/components/CodeNodeEditor/baseExtensions.ts +++ b/packages/editor-ui/src/components/CodeNodeEditor/baseExtensions.ts @@ -15,6 +15,7 @@ import { insertNewlineAndIndent, toggleComment, redo, + deleteCharBackward, } from '@codemirror/commands'; import { lintGutter } from '@codemirror/lint'; @@ -38,6 +39,7 @@ export const baseExtensions = [ { key: 'Enter', run: acceptCompletion }, { key: 'Mod-/', run: toggleComment }, { key: 'Mod-Shift-z', run: redo }, + { key: 'Backspace', run: deleteCharBackward, shift: deleteCharBackward }, indentWithTab, ]), EditorView.lineWrapping,