Skip to content

EspoCRM – Open Source CRM Application

Wysiwyg: Use iframe by default

Yurii43784c5222e8
diff --git a/client/src/views/fields/wysiwyg.ts b/client/src/views/fields/wysiwyg.ts
index 0ad33295a4..49d321f366 100644
--- a/client/src/views/fields/wysiwyg.ts
+++ b/client/src/views/fields/wysiwyg.ts
@@ -114,7 +114,7 @@ class WysiwygFieldView <
protected noStylesheet: boolean = false
- protected useIframe: boolean = false
+ protected useIframe: boolean = true
protected handlebars: boolean = false
@@ -164,7 +164,7 @@ class WysiwygFieldView <
this.minHeight = this.params.minHeight as number;
}
- this.useIframe = this.params.useIframe || this.useIframe;
+ this.useIframe = this.params.useIframe ?? this.useIframe;
this.setupToolbar();
this.setupIsHtml();