Skip to content

Commit 658cde9

Browse files
save file
1 parent 8771c68 commit 658cde9

File tree

1 file changed

+19
-16
lines changed

1 file changed

+19
-16
lines changed

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

Lines changed: 19 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,7 @@
134134
output = mod['output-html'];
135135
log = mod['log-mod'];
136136

137+
137138
menu.initmod({keydown});
138139
mainmenu.initmod({ext,$,menu,editor,filemod});
139140
hdr.initmod({ext,$,menu});
@@ -144,6 +145,7 @@
144145
output.initmod({ext,$});
145146
log.initmod({ext,$});
146147

148+
147149
await Promise.all([
148150
mainmenu.init(),
149151
hdr.init(),
@@ -165,7 +167,10 @@
165167
icon.def = $('link[rel~=icon]').href;
166168

167169

168-
initdom(document.body);
170+
await initdom(document.body);
171+
172+
173+
publish.query();
169174

170175

171176

@@ -341,19 +346,10 @@ <h1 slot=seo-hdr class=visually-hidden>html editor</h1>
341346
debug('initdom');
342347
root = rootnode;
343348

344-
keydown.initdom();
345349
menu.add.style();
346350

347351

348-
hdr.initdom(root);
349-
350-
351-
mainmenu.initdom(root);
352-
353-
filemod.initdom();
354-
355352

356-
autosave.initdom();
357353

358354

359355

@@ -372,24 +368,31 @@ <h1 slot=seo-hdr class=visually-hidden>html editor</h1>
372368
var view = $('#view');
373369
ui.root = view;
374370

375-
await editor.initdom(view,{mode:'html'});
376-
377371

378372
slider.node = $.slider.glass('web-editor','#page-slider','output-html',slider,ui,output);
379373

380-
output.initdom(root);
381374

382375

383-
log.initdom();
376+
//ui.setup(view);
377+
378+
379+
await Promise.all([
380+
keydown.initdom(),
381+
hdr.initdom(root),
382+
mainmenu.initdom(root),
383+
filemod.initdom(),
384+
autosave.initdom(),
385+
output.initdom(root),
386+
log.initdom(),
387+
editor.initdom(view,{mode:'html'}),
388+
]);
384389

385390

386-
//ui.setup(view);
387391

388392

389393
editor.focus();
390394

391395

392-
publish.query();
393396

394397

395398
}//initdom

0 commit comments

Comments
 (0)