Skip to content

Commit e610211

Browse files
save file
1 parent 227ae6d commit e610211

File tree

1 file changed

+12
-7
lines changed

1 file changed

+12
-7
lines changed

utils/editors/markdown-editor/markdown-editor.html

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@
1212
Markdown Editor
1313
</title>
1414

15-
<meta name=description content='Write and preview Markdown instantly in your browser. A clean, fast, and distraction-free editor built for developers, writers, and technical bloggers.'>
15+
<meta name=description content='Write and preview Markdown instantly in your browser. A fast, and distraction-free editor built for developers, writers, and technical bloggers.'>
1616

17-
<base href='https://ext-code.com/utils/editors/markdown-editor/'>
17+
<base href='https://ext-code.com/utils/editors/markdown-editor/markdown-editor.html'>
1818
<link rel=canonical href='https://ext-code.com/utils/editors/markdown-editor/markdown-editor.html'>
1919

2020
<meta name=viewport content='width=device-width, initial-scale=1'>
@@ -51,6 +51,7 @@
5151
var ace;
5252

5353
var hdr;
54+
var mainmenu;
5455
var filemod;
5556
var publish;
5657
var editor;
@@ -64,25 +65,29 @@
6465
debug('init',version);
6566

6667
hdr = mod['editors-hdr'];
68+
mainmenu = mod['main-menu'];
6769
filemod = mod['file-mod'];
6870
publish = mod['publish-ui'];
6971
editor = mod['web-editor'];
7072
output = mod['output-md'];
7173

7274
mod.base.add({complete,source,focus,filemod});
7375

76+
mainmenu.initmod({editor});
7477
publish.initmod({ui});
7578
editor.initmod({on,mode:'markdown'});
79+
output.initmod({debug:debug.mod});
7680

7781
await mod.auto();
7882

7983
//:
8084

81-
hdr['page-source'].url('v3.0/markdown-editor-v3.0.html');
85+
//hdr['page-source'].url('v3.0/markdown-editor-v3.0.html');
8286

8387
icon.def = $('[rel*=icon]').href;
8488

85-
window.onfocus = ()=>editor && editor.focus();
89+
90+
window.onfocus = ()=>editor.focus();
8691
keydown.add(kd);
8792
menu.on.close = ()=>editor.focus();
8893

@@ -96,7 +101,7 @@
96101
</script>
97102

98103

99-
<link rel=stylesheet href='/utils/css/utils.css'>
104+
<link rel=stylesheet href='../css/utils.css' crossorigin=anonymous>
100105

101106
<style id=page-inline>
102107

@@ -133,7 +138,7 @@
133138
{border:none}
134139

135140
#view
136-
{display:flex;flex:1}
141+
{display:flex;flex:1;overflow:auto}
137142

138143
web-editor
139144
{width:50%}
@@ -160,7 +165,7 @@ <h4 slot=version>v3.0</h4>
160165

161166
<div id=hdr>
162167

163-
<main-menu component=page></main-menu>
168+
<main-menu v2.0 component=page></main-menu>
164169

165170
<file-mod component></file-mod>
166171

0 commit comments

Comments
 (0)