EspoCRM – Open Source CRM Application
PHP calendarcontactscrmcrm-platformcrm-systemcustomer-portalcustomer-supportcustomizabledocumentsemail-marketingkanbanleadsopen-sourcephpplatformsales-automationsingle-page-applicationsupport
wysiwyg iframe sandbox
Yuri Kuznetsov620973349798
diff --git a/client/src/views/fields/wysiwyg.js b/client/src/views/fields/wysiwyg.jsindex 2cdf170eea..3ece4edf89 100644--- a/client/src/views/fields/wysiwyg.js+++ b/client/src/views/fields/wysiwyg.js@@ -365,6 +365,8 @@ class WysiwygFieldView extends TextFieldView {/** @type {HTMLIFrameElement} */const iframeElement = this.iframe = $iframe.get(0);+ iframeElement.setAttribute('sandbox', '');+if (!iframeElement || !iframeElement.contentWindow) {return;}