File tree Expand file tree Collapse file tree 1 file changed +20
-2
lines changed
utils/editors/html-editor/v3.0 Expand file tree Collapse file tree 1 file changed +20
-2
lines changed Original file line number Diff line number Diff line change @@ -236,7 +236,7 @@ <h1 slot=seo-hdr class=visually-hidden>html editor</h1>
236236
237237 < div id =page-slider style ='width:10px;cursor:ew-resize '> </ div >
238238
239- < output-html component =page > </ output-html >
239+ < output-html v2.0 component =page > </ output-html >
240240
241241 </ div >
242242
@@ -327,7 +327,7 @@ <h1 slot=seo-hdr class=visually-hidden>html editor</h1>
327327
328328 btn . run = function ( ) {
329329
330- run ( ) ;
330+ run . sandbox ( ) ;
331331
332332 } //run
333333
@@ -501,6 +501,24 @@ <h1 slot=seo-hdr class=visually-hidden>html editor</h1>
501501 } //run
502502
503503
504+ run . sandbox = function ( ) {
505+
506+ var html = editor . getValue ( ) ;
507+ output . sandbox ( html ) ;
508+
509+ } //sandbox
510+
511+
512+ window . addEventListener ( 'message' , e => {
513+
514+ var json = e . data ;
515+ if ( json . sandbox ) {
516+ output . on . message ( json ) ;
517+ }
518+
519+ } ) ;
520+
521+
504522 //:
505523
506524
You can’t perform that action at this time.
0 commit comments