1
0
Fork 0
mirror of https://github.com/documize/community.git synced 2025-08-02 12:05:23 +02:00

CodeMirror dependency upgraded to v5.32.0

For handling Markdown and Code section types
This commit is contained in:
Harvey Kandola 2017-12-18 13:10:51 +00:00
parent 3337db6b27
commit 0336f84a83
351 changed files with 3408 additions and 1945 deletions

4
gui/public/codemirror/mode/htmlmixed/htmlmixed.js vendored Executable file → Normal file
View file

@ -133,11 +133,11 @@
return state.token(stream, state);
},
indent: function (state, textAfter) {
indent: function (state, textAfter, line) {
if (!state.localMode || /^\s*<\//.test(textAfter))
return htmlMode.indent(state.htmlState, textAfter);
else if (state.localMode.indent)
return state.localMode.indent(state.localState, textAfter);
return state.localMode.indent(state.localState, textAfter, line);
else
return CodeMirror.Pass;
},

2
gui/public/codemirror/mode/htmlmixed/index.html vendored Executable file → Normal file
View file

@ -87,7 +87,7 @@
<pre>var myModeSpec = {
name: "htmlmixed",
tags: {
style: [["type", /^text/(x-)?scss$/, "text/x-scss"],
style: [["type", /^text\/(x-)?scss$/, "text/x-scss"],
[null, null, "css"]],
custom: [[null, null, "customMode"]]
}