mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-21 00:06:35 +00:00
parent
a00961b9ef
commit
9b39087102
@ -126,6 +126,7 @@ export class HaCodeEditor extends UpdatingElement {
|
||||
this._loadedCodeMirror.history(),
|
||||
this._loadedCodeMirror.highlightSelectionMatches(),
|
||||
this._loadedCodeMirror.highlightActiveLine(),
|
||||
this._loadedCodeMirror.drawSelection(),
|
||||
this._loadedCodeMirror.rectangularSelection(),
|
||||
this._loadedCodeMirror.keymap.of([
|
||||
...this._loadedCodeMirror.defaultKeymap,
|
||||
|
@ -6,7 +6,7 @@ import { yaml } from "@codemirror/legacy-modes/mode/yaml";
|
||||
import { indentLess, indentMore } from "@codemirror/commands";
|
||||
import { Compartment } from "@codemirror/state";
|
||||
|
||||
export { keymap, highlightActiveLine } from "@codemirror/view";
|
||||
export { keymap, highlightActiveLine, drawSelection } from "@codemirror/view";
|
||||
export { CMEditorView as EditorView };
|
||||
export { EditorState, Prec } from "@codemirror/state";
|
||||
export { defaultKeymap } from "@codemirror/commands";
|
||||
@ -49,6 +49,10 @@ export const theme = CMEditorView.theme({
|
||||
backgroundColor: "rgba(var(--rgb-primary-color), 0.3)",
|
||||
},
|
||||
|
||||
".cm-activeLine": {
|
||||
backgroundColor: "rgba(var(--rgb-secondary-text-color), 0.1)",
|
||||
},
|
||||
|
||||
".cm-scroller": { outline: "none" },
|
||||
|
||||
".cm-content": { caretColor: "var(--secondary-text-color)" },
|
||||
|
Loading…
x
Reference in New Issue
Block a user