fix issue in editor no tools were picked...

This commit is contained in:
Lone Iversen
2024-03-25 11:52:33 +01:00
committed by Jacob Overgaard
parent 1398fc0022
commit 1d504b16f6

View File

@@ -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<string[]>('toolbar');
if (toolbar) {
configurationOptions.toolbar = toolbar.join(' ');
}
configurationOptions.toolbar = toolbar?.join(' ') ?? false;
// set the configured inline mode
const mode = this.configuration?.getValueByAlias<Array<string>>('mode');