From 5ff086011a9ad4460c94daa1455260d30fe90324 Mon Sep 17 00:00:00 2001 From: Lone Iversen <108085781+loivsen@users.noreply.github.com> Date: Mon, 25 Mar 2024 11:42:42 +0100 Subject: [PATCH] Fix crash caused by editor mode --- .../components/input-tiny-mce/input-tiny-mce.element.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Umbraco.Web.UI.Client/src/packages/tiny-mce/components/input-tiny-mce/input-tiny-mce.element.ts b/src/Umbraco.Web.UI.Client/src/packages/tiny-mce/components/input-tiny-mce/input-tiny-mce.element.ts index 94518a0814..226e536a5a 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/tiny-mce/components/input-tiny-mce/input-tiny-mce.element.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/tiny-mce/components/input-tiny-mce/input-tiny-mce.element.ts @@ -214,13 +214,13 @@ export class UmbInputTinyMceElement extends FormControlMixin(UmbLitElement) { } // set the configured inline mode - const mode = this.configuration?.getValueByAlias('mode'); - if (mode?.toLocaleLowerCase() === 'inline') { + const mode = this.configuration?.getValueByAlias>('mode'); + if (mode?.[0].toLocaleLowerCase() === 'inline') { configurationOptions.inline = true; } // set the maximum image size - const maxImageSize = this.configuration?.getValueByAlias('maxImageSize'); + const maxImageSize = this.configuration?.getValueByAlias('maxImageSize'); if (maxImageSize !== undefined) { configurationOptions.maxImageSize = maxImageSize; }