mirror of
https://github.com/espocrm/espocrm.git
synced 2026-07-01 00:16:07 +00:00
wysiwyg iframe sandbox
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user