No editor found
'; - - if (!editor) { - this._element = fallbackEditor; + this._element = editor ? (await createExtensionElement(editor)) : undefined; + if (this._element) { + // TODO: use contextApi for this. + (this._element as any).entityKey = this.entityKey; return; } - try { - this._element = (await createExtensionElement(editor)) as any; - this._element.entityKey = this.entityKey; - } catch (error) { - this._element = fallbackEditor; - } + // TODO: implement fallback editor + // Note for extension-slot, we must enable giving the extension-slot a fallback element. + const fallbackEditor = document.createElement('div'); + fallbackEditor.innerHTML = 'No editor found
'; + this._element = fallbackEditor; } render() { diff --git a/src/Umbraco.Web.UI.Client/src/backoffice/editors/shared/editor-property-layout/editor-property-layout.element.ts b/src/Umbraco.Web.UI.Client/src/backoffice/editors/shared/editor-property-layout/editor-property-layout.element.ts index d0dd047dee..622226947e 100644 --- a/src/Umbraco.Web.UI.Client/src/backoffice/editors/shared/editor-property-layout/editor-property-layout.element.ts +++ b/src/Umbraco.Web.UI.Client/src/backoffice/editors/shared/editor-property-layout/editor-property-layout.element.ts @@ -16,7 +16,7 @@ export class UmbEditorPropertyLayoutElement extends LitElement { :host { display: grid; grid-template-columns: 200px 600px; - gap: 32px; + gap: var(--uui-size-layout-2); } `, ]; diff --git a/src/Umbraco.Web.UI.Client/src/backoffice/editors/user-group/editor-user-group.element.ts b/src/Umbraco.Web.UI.Client/src/backoffice/editors/user-group/editor-user-group.element.ts index d202b68f11..29155f361e 100644 --- a/src/Umbraco.Web.UI.Client/src/backoffice/editors/user-group/editor-user-group.element.ts +++ b/src/Umbraco.Web.UI.Client/src/backoffice/editors/user-group/editor-user-group.element.ts @@ -264,7 +264,7 @@ export class UmbEditorUserGroupElement extends LitElement { render() { return html`