Upgrade CodeMirror to 5.10.1 and now support fullscreen, jump-to-line in editor

This commit is contained in:
Wu Cheng-Han 2016-01-17 14:28:04 -06:00
parent ce65e58096
commit eaa8ccaccb
381 changed files with 6726 additions and 2636 deletions

0
public/vendor/codemirror/addon/fold/brace-fold.js vendored Executable file → Normal file
View file

4
public/vendor/codemirror/addon/fold/comment-fold.js vendored Executable file → Normal file
View file

@ -28,7 +28,9 @@ CodeMirror.registerGlobalHelper("fold", "comment", function(mode) {
continue;
}
if (pass == 1 && found < start.ch) return;
if (/comment/.test(cm.getTokenTypeAt(CodeMirror.Pos(line, found + 1)))) {
if (/comment/.test(cm.getTokenTypeAt(CodeMirror.Pos(line, found + 1))) &&
(lineText.slice(found - endToken.length, found) == endToken ||
!/comment/.test(cm.getTokenTypeAt(CodeMirror.Pos(line, found))))) {
startCh = found + startToken.length;
break;
}

0
public/vendor/codemirror/addon/fold/foldcode.js vendored Executable file → Normal file
View file

0
public/vendor/codemirror/addon/fold/foldgutter.css vendored Executable file → Normal file
View file

4
public/vendor/codemirror/addon/fold/foldgutter.js vendored Executable file → Normal file
View file

@ -20,7 +20,7 @@
cm.off("viewportChange", onViewportChange);
cm.off("fold", onFold);
cm.off("unfold", onFold);
cm.off("swapDoc", updateInViewport);
cm.off("swapDoc", onChange);
}
if (val) {
cm.state.foldGutter = new State(parseOptions(val));
@ -30,7 +30,7 @@
cm.on("viewportChange", onViewportChange);
cm.on("fold", onFold);
cm.on("unfold", onFold);
cm.on("swapDoc", updateInViewport);
cm.on("swapDoc", onChange);
}
});

0
public/vendor/codemirror/addon/fold/indent-fold.js vendored Executable file → Normal file
View file

0
public/vendor/codemirror/addon/fold/markdown-fold.js vendored Executable file → Normal file
View file

0
public/vendor/codemirror/addon/fold/xml-fold.js vendored Executable file → Normal file
View file