lazy load code editor
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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[] = [
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user