File tree Expand file tree Collapse file tree 1 file changed +21
-1
lines changed
utils/editors/html-editor/html/output-html/v2.0 Expand file tree Collapse file tree 1 file changed +21
-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 '> </ 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
8587
8688
8789 var btn = { } ;
90+ obj . on = { } ;
8891
8992
9093 //:
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 ( ) {
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
You can’t perform that action at this time.
0 commit comments