Skip to content

Commit 9772dd3

Browse files
save file
1 parent 341f5ac commit 9772dd3

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

html-components/list/web-editor/web-editor.html

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -309,6 +309,11 @@ <h3>
309309

310310

311311
<section files>
312+
<style>
313+
[files] [list] div
314+
{cursor:pointer;margin-bottom:10px;text-decoration:underline}
315+
316+
</style>
312317
<h3>
313318
Files
314319
</h3>
@@ -333,7 +338,7 @@ <h3>
333338

334339
div.onclick = async e=>{
335340

336-
var txt = div.textContent;
341+
var txt = div.textContent.trim();
337342
var src;
338343
switch(txt){
339344

@@ -345,6 +350,7 @@ <h3>
345350
var txt = await get(base+src);
346351
editor.setValue(txt);
347352
editor.filename(src);
353+
editor.filename.save.hide();
348354

349355
}//onclick
350356

@@ -354,7 +360,7 @@ <h3>
354360

355361
</script>
356362

357-
<web-editor component id=editor fullsize src='https://libs.ext-code.com/html/web-editor/web-editor.html'></web-editor>
363+
<web-editor component id=editor mode=html fullsize src='https://libs.ext-code.com/html/web-editor/web-editor.html'></web-editor>
358364

359365
</section>
360366

0 commit comments

Comments
 (0)