lazy load code editor

This commit is contained in:
Julia Gru
2023-05-26 16:00:45 +02:00
parent aaf259dab1
commit a0dbf8221b
2 changed files with 7 additions and 1 deletions

View File

@@ -3,10 +3,11 @@ import { css, html , customElement, queryAll, state } from '@umbraco-cms/backoff
import { UmbModalToken } from '@umbraco-cms/backoffice/modal';
import { UMB_MODAL_TEMPLATING_INSERT_SECTION_SIDEBAR_ALIAS } from '../manifests.js';
import { getAddSectionSnippet, getRenderBodySnippet, getRenderSectionSnippet } from '../../utils.js';
import type {UmbInsertSectionCheckboxElement} from './insert-section-input.element.js';
import { UmbModalBaseElement } from '@umbraco-cms/internal/modal';
import './insert-section-input.element.js';
// eslint-disable-next-line local-rules/ensure-relative-import-use-js-extension
import type { UmbInsertSectionCheckboxElement } from './insert-section-input.element';
export const UMB_MODAL_TEMPLATING_INSERT_SECTION_MODAL = new UmbModalToken(
UMB_MODAL_TEMPLATING_INSERT_SECTION_SIDEBAR_ALIAS,

View File

@@ -25,6 +25,11 @@ export class UmbTemplateWorkspaceElement extends UmbLitElement {
#element = document.createElement('umb-template-workspace-edit');
#key = '';
connectedCallback() {
super.connectedCallback();
import('../../../core/components/code-editor/index.js');
}
@state()
_routes: UmbRoute[] = [
{