From 1d504b16f6a34d51ed45f1ea153ff2569698b1cd Mon Sep 17 00:00:00 2001 From: Lone Iversen <108085781+loivsen@users.noreply.github.com> Date: Mon, 25 Mar 2024 11:52:33 +0100 Subject: [PATCH] fix issue in editor no tools were picked... --- .../components/input-tiny-mce/input-tiny-mce.element.ts | 6 ++---- 1 file changed, 2 insertions(+), 4 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 226e536a5a..c9b71b31b7 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 @@ -207,11 +207,9 @@ export class UmbInputTinyMceElement extends FormControlMixin(UmbLitElement) { } } - // set the configured toolbar if any + // set the configured toolbar if any, otherwise false const toolbar = this.configuration?.getValueByAlias('toolbar'); - if (toolbar) { - configurationOptions.toolbar = toolbar.join(' '); - } + configurationOptions.toolbar = toolbar?.join(' ') ?? false; // set the configured inline mode const mode = this.configuration?.getValueByAlias>('mode');