22
33<!DOCTYPE html>
44
5- < html >
5+ < html lang = en >
66
77 < head >
88 < meta charset =utf-8 >
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
@@ -277,7 +277,7 @@ <h1 slot=seo-hdr class=visually-hidden>html editor</h1>
277277
278278 < div id =view >
279279
280- < web-editor component > </ web-editor >
280+ < web-editor v2.0 component > </ web-editor >
281281
282282 < div id =page-slider style ='width:10px;cursor:ew-resize '> </ div >
283283
@@ -312,6 +312,8 @@ <h1 slot=seo-hdr class=visually-hidden>html editor</h1>
312312
313313
314314 var btn = { } ;
315+ var on = { } ;
316+ var set = { } ;
315317
316318
317319 //:
@@ -456,6 +458,23 @@ <h1 slot=seo-hdr class=visually-hidden>html editor</h1>
456458
457459 //:
458460
461+
462+ on . change = function ( ) {
463+ //console.log('on.change');
464+ document . title = '💾 ' + document . title ;
465+
466+ } //change
467+
468+
469+ set . title = function ( title ) {
470+
471+ document . title = title ;
472+
473+ } //title
474+
475+
476+ //:
477+
459478
460479 function source ( file ) {
461480
@@ -472,7 +491,8 @@ <h1 slot=seo-hdr class=visually-hidden>html editor</h1>
472491 editor . filename ( file ) ;
473492 editor . filename . save . hide ( ) ;
474493 filemod . cur = file ;
475- document . title = file . name || file . filename ;
494+ var title = file . name || file . filename ;
495+ set . title ( title ) ;
476496 }
477497
478498 menu . close ( ) ;
0 commit comments