mirror of
https://github.com/documize/community.git
synced 2025-08-04 21:15:24 +02:00
CodeMirror dependency upgraded to v5.32.0
For handling Markdown and Code section types
This commit is contained in:
parent
3337db6b27
commit
0336f84a83
351 changed files with 3408 additions and 1945 deletions
0
gui/public/codemirror/addon/fold/brace-fold.js
vendored
Executable file → Normal file
0
gui/public/codemirror/addon/fold/brace-fold.js
vendored
Executable file → Normal file
0
gui/public/codemirror/addon/fold/comment-fold.js
vendored
Executable file → Normal file
0
gui/public/codemirror/addon/fold/comment-fold.js
vendored
Executable file → Normal file
2
gui/public/codemirror/addon/fold/foldcode.js
vendored
Executable file → Normal file
2
gui/public/codemirror/addon/fold/foldcode.js
vendored
Executable file → Normal file
|
@ -65,6 +65,8 @@
|
|||
widget = document.createElement("span");
|
||||
widget.appendChild(text);
|
||||
widget.className = "CodeMirror-foldmarker";
|
||||
} else if (widget) {
|
||||
widget = widget.cloneNode(true)
|
||||
}
|
||||
return widget;
|
||||
}
|
||||
|
|
0
gui/public/codemirror/addon/fold/foldgutter.css
vendored
Executable file → Normal file
0
gui/public/codemirror/addon/fold/foldgutter.css
vendored
Executable file → Normal file
0
gui/public/codemirror/addon/fold/foldgutter.js
vendored
Executable file → Normal file
0
gui/public/codemirror/addon/fold/foldgutter.js
vendored
Executable file → Normal file
2
gui/public/codemirror/addon/fold/indent-fold.js
vendored
Executable file → Normal file
2
gui/public/codemirror/addon/fold/indent-fold.js
vendored
Executable file → Normal file
|
@ -18,7 +18,7 @@ function lineIndent(cm, lineNo) {
|
|||
return -1
|
||||
return CodeMirror.countColumn(text, null, cm.getOption("tabSize"))
|
||||
}
|
||||
!
|
||||
|
||||
CodeMirror.registerHelper("fold", "indent", function(cm, start) {
|
||||
var myIndent = lineIndent(cm, start.line)
|
||||
if (myIndent < 0) return
|
||||
|
|
0
gui/public/codemirror/addon/fold/markdown-fold.js
vendored
Executable file → Normal file
0
gui/public/codemirror/addon/fold/markdown-fold.js
vendored
Executable file → Normal file
4
gui/public/codemirror/addon/fold/xml-fold.js
vendored
Executable file → Normal file
4
gui/public/codemirror/addon/fold/xml-fold.js
vendored
Executable file → Normal file
|
@ -163,10 +163,10 @@
|
|||
}
|
||||
};
|
||||
|
||||
CodeMirror.findEnclosingTag = function(cm, pos, range) {
|
||||
CodeMirror.findEnclosingTag = function(cm, pos, range, tag) {
|
||||
var iter = new Iter(cm, pos.line, pos.ch, range);
|
||||
for (;;) {
|
||||
var open = findMatchingOpen(iter);
|
||||
var open = findMatchingOpen(iter, tag);
|
||||
if (!open) break;
|
||||
var forward = new Iter(cm, pos.line, pos.ch, range);
|
||||
var close = findMatchingClose(forward, open.tag);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue