File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
utils/editors/html-editor/html/output-html/v2.0 Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change 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
7474
7575 //vars:-
7676
77+ var allow_save_origin = false ;
78+
7779 var chk = { } ;
7880
7981 var hldr ;
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
You can’t perform that action at this time.
0 commit comments