set height width to undefined if 0px rather than fully collapse editor

This commit is contained in:
Lone Iversen
2024-03-25 14:34:56 +01:00
committed by Jacob Overgaard
parent a1351cd717
commit 242b3913ed

View File

@@ -195,8 +195,8 @@ export class UmbInputTinyMceElement extends FormControlMixin(UmbLitElement) {
// create an object by merging the configuration onto the fallback config
const configurationOptions: RawEditorOptions = {
...defaultFallbackConfig,
height: dimensions?.height,
width: dimensions?.width,
height: dimensions?.height || undefined,
width: dimensions?.width || undefined,
content_css: stylesheets,
style_formats: styleFormats,
};