Skip to content

Commit d4de85e

Browse files
save file
1 parent 9c48817 commit d4de85e

File tree

1 file changed

+36
-13
lines changed

1 file changed

+36
-13
lines changed

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

Lines changed: 36 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,15 @@
124124

125125
</head>
126126

127+
<script>
128+
129+
var data = {};
130+
data.readmd = `
131+
# description
132+
133+
`;
134+
135+
</script>
127136

128137
<body>
129138

@@ -269,6 +278,7 @@ <h3>
269278
{margin:20px}
270279

271280
</style>
281+
272282
<section api>
273283
<h3>
274284
API
@@ -299,38 +309,45 @@ <h4>
299309
js | javascript,python,java,c_cpp,csharp,php,ruby,go,swift,html,css,scss,less,typescript,markdown,json,xml,yaml,sql
300310
</div>
301311
<div class=description>
302-
sets the mode for the editor
312+
set the mode for the editor
303313
</div>
304314
</div>
305-
315+
306316
<div item>
307317
<div class=name>
308318
src
309319
</div>
310320
<div class=value>
311-
[url]
321+
url
312322
</div>
313323
<div class=description>
314-
url of text to display
324+
the url of the text to load in the editor
315325
</div>
316326
</div>
327+
317328
</div>
318329

319-
320330
<div module>
321331
<h4>
322332
[module]
323333
</h4>
324334

325335
<div item>
336+
<div class=label>
337+
name
338+
</div>
326339
<div class=name>
327-
getvalue()
328-
<br>
329-
getValue()
340+
getvalue(), alias : getValue
341+
</div>
342+
<div class=label>
343+
parameters
330344
</div>
331345
<div class=params>
332346
none
333347
</div>
348+
<div class=return>
349+
string : the text of the docuemnt
350+
</div>
334351
<div class=description>
335352
get the text from the editor
336353
</div>
@@ -345,6 +362,9 @@ <h4>
345362
<div class=params>
346363
txt : string, the text to be displayed
347364
</div>
365+
<div class=return>
366+
does not return a value
367+
</div>
348368
<div class=description>
349369
set the text of the editor
350370
</div>
@@ -376,16 +396,19 @@ <h3>
376396

377397
<section files>
378398
<style>
379-
380-
[files] [list] div
381-
{cursor:pointer;margin-bottom:10px;text-decoration:underline}
399+
400+
[files] [tabs]
401+
{display:flex;text-align:center}
402+
403+
[files] [tabs] div
404+
{cursor:pointer;margin-bottom:10px;flex:1;border:1px solid lightgray;padding:5px 10px}
382405

383406
</style>
384407
<h3>
385408
Files
386409
</h3>
387410

388-
<div list>
411+
<div tabs>
389412
<div>
390413
latest
391414
</div>
@@ -401,7 +424,7 @@ <h3>
401424
var base = 'https://libs.ext-code.com/html/web-editor/';
402425
var get = url=>fetch(url).then(res=>res.text());
403426

404-
$.all('[files] [list] div').forEach(div=>{
427+
$.all('[files] [tabs] div').forEach(div=>{
405428

406429
div.onclick = async e=>{
407430

0 commit comments

Comments
 (0)