|
12 | 12 | Markdown Editor |
13 | 13 | </title> |
14 | 14 |
|
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.'> |
16 | 16 |
|
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'> |
18 | 18 | <link rel=canonical href='https://ext-code.com/utils/editors/markdown-editor/markdown-editor.html'> |
19 | 19 |
|
20 | 20 | <meta name=viewport content='width=device-width, initial-scale=1'> |
|
51 | 51 | var ace; |
52 | 52 |
|
53 | 53 | var hdr; |
| 54 | + var mainmenu; |
54 | 55 | var filemod; |
55 | 56 | var publish; |
56 | 57 | var editor; |
|
64 | 65 | debug('init',version); |
65 | 66 |
|
66 | 67 | hdr = mod['editors-hdr']; |
| 68 | + mainmenu = mod['main-menu']; |
67 | 69 | filemod = mod['file-mod']; |
68 | 70 | publish = mod['publish-ui']; |
69 | 71 | editor = mod['web-editor']; |
70 | 72 | output = mod['output-md']; |
71 | 73 |
|
72 | 74 | mod.base.add({complete,source,focus,filemod}); |
73 | 75 |
|
| 76 | + mainmenu.initmod({editor}); |
74 | 77 | publish.initmod({ui}); |
75 | 78 | editor.initmod({on,mode:'markdown'}); |
| 79 | + output.initmod({debug:debug.mod}); |
76 | 80 |
|
77 | 81 | await mod.auto(); |
78 | 82 |
|
79 | 83 | //: |
80 | 84 |
|
81 | | - hdr['page-source'].url('v3.0/markdown-editor-v3.0.html'); |
| 85 | + //hdr['page-source'].url('v3.0/markdown-editor-v3.0.html'); |
82 | 86 |
|
83 | 87 | icon.def = $('[rel*=icon]').href; |
84 | 88 |
|
85 | | - window.onfocus = ()=>editor && editor.focus(); |
| 89 | + |
| 90 | + window.onfocus = ()=>editor.focus(); |
86 | 91 | keydown.add(kd); |
87 | 92 | menu.on.close = ()=>editor.focus(); |
88 | 93 |
|
|
96 | 101 | </script> |
97 | 102 |
|
98 | 103 |
|
99 | | - <link rel=stylesheet href='/utils/css/utils.css'> |
| 104 | + <link rel=stylesheet href='../css/utils.css' crossorigin=anonymous> |
100 | 105 |
|
101 | 106 | <style id=page-inline> |
102 | 107 |
|
@@ -160,7 +165,7 @@ <h4 slot=version>v3.0</h4> |
160 | 165 |
|
161 | 166 | <div id=hdr> |
162 | 167 |
|
163 | | - <main-menu component=page></main-menu> |
| 168 | + <main-menu v2.0 component=page></main-menu> |
164 | 169 |
|
165 | 170 | <file-mod component></file-mod> |
166 | 171 |
|
|
0 commit comments