We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 31845cf commit aa9d58bCopy full SHA for aa9d58b
1 file changed
utils/editors/html-editor/html/output-html/output-html.html
@@ -43,7 +43,7 @@
43
</div>
44
45
<div id=hldr>
46
- <iframe sandbox='allow-forms allow-downloads allow-pointer-lock allow-popups-to-escape-sandbox allow-same-origin'></iframe>
+ <iframe sandbox='allow-forms allow-downloads allow-pointer-lock allow-popups-to-escape-sandbox'></iframe>
47
<div id=glass></div>
48
49
@@ -74,6 +74,8 @@
74
75
//vars:-
76
77
+ var allow_same_origin = false;
78
+
79
var chk = {};
80
81
var hldr;
@@ -113,6 +115,10 @@
113
115
114
116
hldr = $(shadow,'#hldr');
117
iframe = $(shadow,'iframe');
118
+ if(allow_same_origin){
119
+ var attr = iframe.getAttribute('sandbox');
120
+ attr += ' allow-same-origin';
121
+ }
122
def_sandbox = iframe.getAttribute('sandbox');
123
glass = $(shadow,'#glass');
124
0 commit comments