Skip to content

Commit 6f4987c

Browse files
save file
1 parent 37e3ad2 commit 6f4987c

File tree

1 file changed

+11
-14
lines changed

1 file changed

+11
-14
lines changed

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

Lines changed: 11 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -77,10 +77,10 @@
7777

7878
hdr = mod['editors-hdr'];
7979
mainmenu = mod['main-menu'];
80-
filemod = mod.filemod;
81-
publish = mod.publish;
82-
editor = mod.editor;
83-
log = mod.log;
80+
filemod = mod['file-mod']
81+
publish = mod['publish-ui'];
82+
editor = mod['web-editor'];
83+
log = mod['log-mod'];
8484

8585
menu.initmod({keydown});
8686
hdr.initmod({ext,$,menu});
@@ -177,6 +177,7 @@
177177
</style>
178178

179179
</head>
180+
180181

181182
<body>
182183

@@ -191,7 +192,7 @@ <h1 slot=seo-hdr class=visually-hidden>editor</h1>
191192

192193
<main-menu component=page v2.0></main-menu>
193194

194-
<filemod component v2.0></filemod>
195+
<file-mod component></file-mod>
195196

196197
<div id=save-root>
197198
<button id=save>save</button>
@@ -203,18 +204,18 @@ <h1 slot=seo-hdr class=visually-hidden>editor</h1>
203204
</div>
204205
</div>
205206

206-
<publish component v2.0></publish>
207+
<publish-ui component></publish-ui>
207208

208209
</div>
209210

210211
<div id=view>
211212

212-
<editor component v2.0></editor>
213+
<web-editor component></web-editor>
213214

214215
</div>
215216

216217

217-
<log component v2.0></log>
218+
<log-mod component></log-mod>
218219

219220

220221

@@ -386,19 +387,15 @@ <h1 slot=seo-hdr class=visually-hidden>editor</h1>
386387

387388

388389
window.onmessage = function(e){
389-
console.log('window.onmessage',e);
390+
//console.log('window.onmessage',e);
391+
//console.trace();
390392
var json = JSON.parse(e.data);
391393

392394
var txt = json.code||json.text||json.txt;
393395
if(txt){
394396
editor.setValue(txt,-1);
395397
}
396398

397-
if(json.run){
398-
run();
399-
}
400-
401-
402399
}//onmessage
403400

404401

0 commit comments

Comments
 (0)