diff --git a/src-web/components/core/Editor/extensions.ts b/src-web/components/core/Editor/extensions.ts index 97af76c1..9dd25e0c 100644 --- a/src-web/components/core/Editor/extensions.ts +++ b/src-web/components/core/Editor/extensions.ts @@ -4,7 +4,7 @@ import { closeBracketsKeymap, completionKeymap, } from '@codemirror/autocomplete'; -import { defaultKeymap, history, historyKeymap } from '@codemirror/commands'; +import { defaultKeymap, history, historyKeymap, indentWithTab } from '@codemirror/commands'; import { javascript } from '@codemirror/lang-javascript'; import { json } from '@codemirror/lang-json'; import { xml } from '@codemirror/lang-xml'; @@ -133,6 +133,7 @@ export const baseExtensions = [ return (a.boost ?? 0) - (b.boost ?? 0); }, }), + keymap.of([indentWithTab]), syntaxHighlighting(myHighlightStyle), myTheme, EditorState.allowMultipleSelections.of(true),