Skip to content

Commit ca805d5

Browse files
save file
1 parent ecf627b commit ca805d5

File tree

1 file changed

+19
-2
lines changed

1 file changed

+19
-2
lines changed

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

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@
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'
@@ -226,6 +226,13 @@
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;
@@ -292,13 +299,23 @@
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(){

0 commit comments

Comments
 (0)