Skip to content

Commit 653c755

Browse files
save file
1 parent 59266e8 commit 653c755

1 file changed

Lines changed: 14 additions & 4 deletions

File tree

utils/editors/html-editor/html-editor.html

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,9 @@
206206
<img slot=title src='images/html-editor.png' style='top:-5px;height:55px' alt='html editor'>
207207
<h1 slot=seo-hdr class=visually-hidden>html editor</h1>
208208
<h4 slot=version>v3.0</h4>
209-
<time slot=date datetime=2026-01-24>24 Jan 2026</time>
209+
<time slot=date datetime=2026-05-03>
210+
3 May 2026
211+
</time>
210212
</editors-hdr>
211213

212214

@@ -240,7 +242,7 @@ <h4 slot=version>v3.0</h4>
240242

241243
<div id=page-slider style='width:10px;cursor:ew-resize'></div>
242244

243-
<output-html component=page></output-html>
245+
<output-html v2.0 component=page></output-html>
244246

245247
</div>
246248

@@ -294,6 +296,7 @@ <h4 slot=version>v3.0</h4>
294296

295297
focus();
296298

299+
297300
}//initdom
298301

299302

@@ -525,8 +528,10 @@ <h4 slot=version>v3.0</h4>
525528
//:
526529

527530

528-
function run(){
529-
debug('run');
531+
var run = {};
532+
533+
run.srcdoc = function(){
534+
debug('run.srcdoc');
530535
if(autosave.checked){
531536
debug('autosave');
532537
filemod.save();
@@ -541,6 +546,11 @@ <h4 slot=version>v3.0</h4>
541546

542547
run.sandbox = function(){
543548
debug('run.sandbox');
549+
if(autosave.checked){
550+
debug('autosave');
551+
filemod.save();
552+
}
553+
544554
var html = editor.getValue();
545555
output.sandbox(html);
546556

0 commit comments

Comments
 (0)