Revert to customized codemirror

This commit is contained in:
Yukai Huang 2016-10-09 17:54:51 +08:00
parent 196d546f7e
commit 3e2905be13
4 changed files with 4 additions and 10 deletions

View file

@ -14,7 +14,6 @@
"bootstrap": "^3.3.7", "bootstrap": "^3.3.7",
"chance": "^1.0.4", "chance": "^1.0.4",
"cheerio": "^0.20.0", "cheerio": "^0.20.0",
"codemirror": "^5.19.0",
"compression": "^1.6.2", "compression": "^1.6.2",
"connect-session-sequelize": "^3.1.0", "connect-session-sequelize": "^3.1.0",
"cookie": "0.3.1", "cookie": "0.3.1",

View file

@ -18,12 +18,6 @@ require('bootstrap/dist/css/bootstrap.css');
require('prismjs/themes/prism.css'); require('prismjs/themes/prism.css');
require('highlight.js/styles/github-gist.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');
require('markdown-it-abbr'); require('markdown-it-abbr');
require('markdown-it-footnote'); require('markdown-it-footnote');

View file

@ -22,11 +22,13 @@
<script src="<%- url %>/vendor/mermaid/dist/mermaid.min.js" defer></script> <script src="<%- url %>/vendor/mermaid/dist/mermaid.min.js" defer></script>
<% } %> <% } %>
<script src="<%- url %>/vendor/idle.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/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/inline-attachment.js" defer></script>
<script src="<%- url %>/vendor/inlineAttachment/codemirror.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/ot/ot.min.js" defer></script>
<script src="<%- url %>/vendor/xss.min.js" defer></script> <script src="<%- url %>/vendor/xss.min.js" defer></script>
<script src="<%- url %>/build/js/app.js" defer></script> <script src="<%- url %>/build/js/app.js" defer></script>

View file

@ -12,7 +12,6 @@ module.exports = {
"window.jQuery": "jquery", "window.jQuery": "jquery",
Visibility: "visibilityjs", Visibility: "visibilityjs",
Cookies: "js-cookie", Cookies: "js-cookie",
CodeMirror: "codemirror",
emojify: "emojify.js", emojify: "emojify.js",
io: "socket.io-client", io: "socket.io-client",
LZString: "lz-string", LZString: "lz-string",