Skip to content

Commit b144a88

Browse files
save file
1 parent 7996eea commit b144a88

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

utils/editors/html-editor/html/output-html/v2.0/output-html-v2.0.html

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
</div>
4444

4545
<div id=hldr>
46-
<iframe sandbox='allow-forms allow-downloads allow-pointer-lock allow-popups-to-escape-sandbox allow-same-origin'></iframe>
46+
<iframe sandbox='allow-forms allow-downloads allow-pointer-lock allow-popups-to-escape-sandbox'></iframe>
4747
<div id=glass></div>
4848
</div>
4949

@@ -74,6 +74,8 @@
7474

7575
//vars:-
7676

77+
var allow_save_origin = false;
78+
7779
var chk = {};
7880

7981
var hldr;
@@ -113,6 +115,10 @@
113115

114116
hldr = $(shadow,'#hldr');
115117
iframe = $(shadow,'iframe');
118+
if(allow_same_origin){
119+
var attr = iframe.getAttribute('sandbox');
120+
attr += ' allow-same-origin';
121+
}
116122
def_sandbox = iframe.getAttribute('sandbox');
117123
glass = $(shadow,'#glass');
118124

0 commit comments

Comments
 (0)