diff --git a/src/Umbraco.Web.UI.Client/src/external/monaco-editor/index.ts b/src/Umbraco.Web.UI.Client/src/external/monaco-editor/index.ts index 82dd0fdf1e..d77864aa8c 100644 --- a/src/Umbraco.Web.UI.Client/src/external/monaco-editor/index.ts +++ b/src/Umbraco.Web.UI.Client/src/external/monaco-editor/index.ts @@ -1,4 +1,4 @@ -import styles from 'monaco-editor/min/vs/editor/editor.main.css'; +import styles from 'monaco-editor/min/vs/editor/editor.main.css?inline'; //eslint-disable-next-line import editorWorker from 'monaco-editor/esm/vs/editor/editor.worker.js?worker'; //eslint-disable-next-line diff --git a/src/Umbraco.Web.UI.Client/src/packages/templating/stylesheets/workspace/views/code-editor/stylesheet-workspace-view-code-editor.element.ts b/src/Umbraco.Web.UI.Client/src/packages/templating/stylesheets/workspace/views/code-editor/stylesheet-workspace-view-code-editor.element.ts index 614870d536..4963b9931c 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/templating/stylesheets/workspace/views/code-editor/stylesheet-workspace-view-code-editor.element.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/templating/stylesheets/workspace/views/code-editor/stylesheet-workspace-view-code-editor.element.ts @@ -32,6 +32,11 @@ export class UmbStylesheetWorkspaceViewCodeEditorElement extends UmbLitElement { }); } + disconnectedCallback(): void { + super.disconnectedCallback(); + this.#stylesheetWorkspaceContext?.sendContentGetRules(); + } + #onCodeEditorInput(event: Event) { const target = event.target as UmbCodeEditorElement; const value = target.code as string;