File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed
html-components/list/web-editor Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff 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 >
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
345350 var txt = await get ( base + src ) ;
346351 editor . setValue ( txt ) ;
347352 editor . filename ( src ) ;
353+ editor . filename . save . hide ( ) ;
348354
349355 } //onclick
350356
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
You can’t perform that action at this time.
0 commit comments