Skip to content

Commit b028340

Browse files
save file
1 parent f7cceed commit b028340

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

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

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
<!DOCTYPE html>
44

5-
<html>
5+
<html lang=en>
66

77
<head>
88
<meta charset=utf-8>
@@ -460,15 +460,15 @@ <h1 slot=seo-hdr class=visually-hidden>html editor</h1>
460460

461461

462462
on.change = function(){
463-
464-
console.log('on.change');
465-
463+
//console.log('on.change');
464+
document.title = '💾 '+document.title;
465+
466466
}//change
467467

468468

469-
set.title = function(){
469+
set.title = function(title){
470470

471-
document.title = file.name||file.filename;
471+
document.title = title;
472472

473473
}//title
474474

@@ -491,7 +491,8 @@ <h1 slot=seo-hdr class=visually-hidden>html editor</h1>
491491
editor.filename(file);
492492
editor.filename.save.hide();
493493
filemod.cur = file;
494-
set.title();
494+
var title = file.name||file.filename;
495+
set.title(title);
495496
}
496497

497498
menu.close();

0 commit comments

Comments
 (0)