wysiwyg iframe sandbox

This commit is contained in:
Yuri Kuznetsov
2025-02-26 21:51:59 +02:00
parent 5e37bc2d62
commit 6209733497

View File

@@ -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;
}