mirror of
https://github.com/documize/community.git
synced 2025-07-21 14:19:43 +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
6
gui/public/codemirror/addon/lint/coffeescript-lint.js
vendored
Executable file → Normal file
6
gui/public/codemirror/addon/lint/coffeescript-lint.js
vendored
Executable file → Normal file
|
@ -17,6 +17,12 @@
|
|||
|
||||
CodeMirror.registerHelper("lint", "coffeescript", function(text) {
|
||||
var found = [];
|
||||
if (!window.coffeelint) {
|
||||
if (window.console) {
|
||||
window.console.error("Error: window.coffeelint not defined, CodeMirror CoffeeScript linting cannot run.");
|
||||
}
|
||||
return found;
|
||||
}
|
||||
var parseError = function(err) {
|
||||
var loc = err.lineNumber;
|
||||
found.push({from: CodeMirror.Pos(loc-1, 0),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue