Skip to content

Commit dadefaa

Browse files
save file
1 parent 1ea5363 commit dadefaa

File tree

1 file changed

+20
-2
lines changed

1 file changed

+20
-2
lines changed

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

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@
128128
hdr.initmod({ext,$,menu});
129129
filemod.initmod({ext,$,menumod,menu,complete,source,focus,log});
130130
publish.initmod({ext,$,menu,run,source,complete,log});
131-
editor.initmod({ext,$,menu});
131+
editor.initmod({ext,$,menu,on});
132132
output.initmod({ext,$});
133133
log.initmod({ext,$});
134134

@@ -312,6 +312,7 @@ <h1 slot=seo-hdr class=visually-hidden>html editor</h1>
312312

313313

314314
var btn = {};
315+
var on = {};
315316

316317

317318
//:
@@ -456,6 +457,23 @@ <h1 slot=seo-hdr class=visually-hidden>html editor</h1>
456457

457458
//:
458459

460+
461+
on.change = function(){
462+
463+
console.log('on.change');
464+
465+
}//change
466+
467+
468+
set.title = function(){
469+
470+
document.title = file.name||file.filename;
471+
472+
}//title
473+
474+
475+
//:
476+
459477

460478
function source(file){
461479

@@ -472,7 +490,7 @@ <h1 slot=seo-hdr class=visually-hidden>html editor</h1>
472490
editor.filename(file);
473491
editor.filename.save.hide();
474492
filemod.cur = file;
475-
document.title = file.name||file.filename;
493+
set.title();
476494
}
477495

478496
menu.close();

0 commit comments

Comments
 (0)