Skip to content

Commit 389e760

Browse files
save file
1 parent b212a77 commit 389e760

File tree

1 file changed

+9
-20
lines changed

1 file changed

+9
-20
lines changed

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

Lines changed: 9 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,15 @@
4040
}
4141
</script>
4242

43+
<meta property=og:title content='HTML Editor'>
44+
<meta property=og:description content='Free online HTML editor with live preview and export to GitHub, cloud storage, or your local filesystem'>
45+
<meta property=og:image content='https://ext-code.com/utils/editors/html-editor/images/og-image.webp'>
46+
<meta property=og:image:width content=1280>
47+
<meta property=og:image:height content=720>
48+
<meta property=og:url content='https://ext-code.com/utils/editors/html-editor/html-editor.html'>
49+
<meta property=og:type content='website'>
50+
<meta property=og:site_name content=ext-code.com>
51+
4352

4453
<script src='https://cdn.jsdelivr.net/npm/ace-builds@1.37.0/src-min-noconflict/ace.js'></script>
4554
<script src='https://cdn.jsdelivr.net/npm/prettier@2.8.8/standalone.js'></script>
@@ -514,26 +523,6 @@ <h1 slot=seo-hdr class=visually-hidden>html editor</h1>
514523
txt = autosave.txt.trim(txt);
515524
}
516525

517-
/*
518-
if(ui.trim.checked){
519-
var indent = 0;
520-
var lines = txt.split('\n');
521-
lines = lines.map(line=>{
522-
523-
line = line.trimEnd();
524-
if(line.length==0){
525-
line = line.padStart(indent,' ');
526-
}
527-
var match = line.match(/^\s* /);
528-
indent = match ? match[0].length : indent;
529-
return line;
530-
531-
});
532-
txt = lines.join('\n');
533-
}
534-
*/
535-
536-
537526
var blob = new Blob([txt]);
538527
return blob;
539528

0 commit comments

Comments
 (0)