summaryrefslogtreecommitdiff
path: root/public
diff options
context:
space:
mode:
authorYukai Huang2016-10-09 17:54:51 +0800
committerYukai Huang2016-10-09 17:54:51 +0800
commit3e2905be13551a0cceeb18e72242be891db10db7 (patch)
treed08cedc6f65beafc7b3e8fd1b2ded8d5641c24c7 /public
parent196d546f7e8273b3fdc1bd60c3bf627b2fa1462b (diff)
Revert to customized codemirror
Diffstat (limited to 'public')
-rw-r--r--public/js/index.js6
-rw-r--r--public/views/foot.ejs6
2 files changed, 4 insertions, 8 deletions
diff --git a/public/js/index.js b/public/js/index.js
index 0fba0b21..db76b745 100644
--- a/public/js/index.js
+++ b/public/js/index.js
@@ -18,12 +18,6 @@ require('bootstrap/dist/css/bootstrap.css');
require('prismjs/themes/prism.css');
require('highlight.js/styles/github-gist.css');
-/* code mirror plugins */
-require('codemirror/keymap/vim');
-require('codemirror/keymap/emacs');
-require('codemirror/keymap/sublime');
-require('codemirror/addon/display/panel');
-
require('markdown-it');
require('markdown-it-abbr');
require('markdown-it-footnote');
diff --git a/public/views/foot.ejs b/public/views/foot.ejs
index 13805753..0ad10546 100644
--- a/public/views/foot.ejs
+++ b/public/views/foot.ejs
@@ -22,11 +22,13 @@
<script src="<%- url %>/vendor/mermaid/dist/mermaid.min.js" defer></script>
<% } %>
<script src="<%- url %>/vendor/idle.min.js" defer></script>
+<script src="<%- url %>/vendor/lz-string.min.js" defer></script>
+<script src="<%- url %>/vendor/jquery/dist/jquery.min.js" defer></script>
+<!--codemirror-->
<script src="<%- url %>/vendor/codemirror/codemirror.min.js" defer></script>
-<script src="<%- url %>/vendor/codemirror-spell-checker/spell-checker.min.js" defer></script>
<script src="<%- url %>/vendor/inlineAttachment/inline-attachment.js" defer></script>
<script src="<%- url %>/vendor/inlineAttachment/codemirror.inline-attachment.js" defer></script>
-<script src="<%- url %>/vendor/lz-string.min.js" defer></script>
+<script src="<%- url %>/vendor/codemirror-spell-checker/spell-checker.min.js" defer></script>
<script src="<%- url %>/vendor/ot/ot.min.js" defer></script>
<script src="<%- url %>/vendor/xss.min.js" defer></script>
<script src="<%- url %>/build/js/app.js" defer></script>