Skip to content

Commit

Permalink
fix for broken highlighting
Browse files Browse the repository at this point in the history
  • Loading branch information
arausly committed Oct 23, 2024
1 parent 9e880be commit c539bd9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/AutoSuggestion/ExtendedCodeEditor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ export const ExtendedCodeEditor = ({
mode={mode}
name=""
enableTab={enableTab}
additionalExtensions={[markField, ...multilineExtensions]}
additionalExtensions={[...multilineExtensions]}
outerDivAttributes={{
className: `${eccgui}-${
multiline ? "codeeditor" : `singlelinecodeeditor ${BlueprintClassNames.INPUT}`
Expand Down
2 changes: 2 additions & 0 deletions src/extensions/codemirror/CodeMirror.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import { DOMEventHandlers, EditorView, KeyBinding, keymap, Rect, ViewUpdate } fr
//CodeMirror
import { minimalSetup } from "codemirror";

import { markField } from "../../components/AutoSuggestion/extensions/markText";
//constants
import { CLASSPREFIX as eccgui } from "../../configuration/constants";

Expand Down Expand Up @@ -212,6 +213,7 @@ export const CodeEditor = ({
...addHandlersFor(!!onKeyDown, "keydown", onKeyDownHandler),
} as DOMEventHandlers<any>;
const extensions = [
markField,
adaptedPlaceholder(placeholder),
adaptedHighlightSpecialChars(),
useCodeMirrorModeExtension(mode),
Expand Down

0 comments on commit c539bd9

Please sign in to comment.