Skip to content

Commit 0e87942

Browse files
save file
1 parent 630a0c6 commit 0e87942

File tree

1 file changed

+21
-1
lines changed

1 file changed

+21
-1
lines changed

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

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

4545
<div id=hldr>
46-
<iframe sandbox='allow-forms allow-downloads allow-pointer-lock allow-popups-to-escape-sandbox'></iframe>
46+
<iframe src='https://sandbox.ext-code-test.com/html-sandbox/html-sandbox.html'
47+
sandbox='allow-forms allow-downloads allow-pointer-lock allow-popups-to-escape-sandbox'
48+
></iframe>
4749
<div id=glass></div>
4850
</div>
4951

@@ -85,6 +87,7 @@
8587

8688

8789
var btn = {};
90+
obj.on = {};
8891

8992

9093
//:
@@ -189,6 +192,13 @@
189192
}//srcdoc
190193

191194

195+
obj.sandbox = function(html){
196+
197+
iframe.contentWindow.postMessage({type:'run',html});
198+
199+
}//sandbox
200+
201+
192202
obj.kill = function(){return kill()} //d
193203

194204
function kill(){
@@ -201,6 +211,16 @@
201211
}//kill
202212

203213

214+
//:
215+
216+
217+
obj.on.message = function(json){
218+
219+
console.log('output.message',json);
220+
221+
}//message
222+
223+
204224
//:
205225

206226

0 commit comments

Comments
 (0)