File tree Expand file tree Collapse file tree 1 file changed +19
-2
lines changed
utils/editors/html-editor/html/output-html/v2.0 Expand file tree Collapse file tree 1 file changed +19
-2
lines changed Original file line number Diff line number Diff line change 6767 https://ext-code-test.com/html-sandbox/html-sandbox.html
6868 -->
6969 < div id =hldr >
70- < iframe src ='https://ext-code-test.com/html-sandbox/html-sandbox.html '
70+ < iframe src =''
7171 sandbox ='allow-scripts allow-same-origin allow-forms allow-downloads allow-pointer-lock allow-popups-to-escape-sandbox '
7272 allow ='clipboard-write; clipboard-read; camera; microphone; geolocation; accelerometer; gyroscope; magnetometer; payment; usb; serial; bluetooth;
7373 xr-spatial-tracking; autoplay; encrypted-media; picture-in-picture; screen-wake-lock; web-share '
226226
227227
228228
229+ //:
230+
231+
232+ obj . run = function ( html ) {
233+ } //run
234+
235+
229236 build . sandbox = function ( ) {
230237
231238 var attr = def_sandbox ;
292299 }
293300
294301 var echo = chk [ 'console-echo' ] . checked ;
295- iframe . contentWindow . postMessage ( { type :'run' , html, echo} , '*' ) ;
302+ //iframe.contentWindow.postMessage({type:'run',html,echo},'*');
303+
304+ var blob = new Blob ( [ html ] , { type :'text/html' } ) ;
305+ var url = URL . createObjectURL ( blob ) ;
306+ iframe . src = url ;
296307
297308 } //onload
298309
299310 } //sandbox
300311
301312
313+ obj . blob = function ( html ) {
314+
315+
316+ } //blob
317+
318+
302319 obj . kill = function ( ) { return kill ( ) } //d
303320
304321 function kill ( ) {
You can’t perform that action at this time.
0 commit comments