mirror of
https://github.com/documize/community.git
synced 2025-07-20 13:49:42 +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
7
gui/public/codemirror/addon/lint/javascript-lint.js
vendored
Executable file → Normal file
7
gui/public/codemirror/addon/lint/javascript-lint.js
vendored
Executable file → Normal file
|
@ -22,7 +22,12 @@
|
|||
"Unclosed string", "Stopping, unable to continue" ];
|
||||
|
||||
function validator(text, options) {
|
||||
if (!window.JSHINT) return [];
|
||||
if (!window.JSHINT) {
|
||||
if (window.console) {
|
||||
window.console.error("Error: window.JSHINT not defined, CodeMirror JavaScript linting cannot run.");
|
||||
}
|
||||
return [];
|
||||
}
|
||||
JSHINT(text, options, options.globals);
|
||||
var errors = JSHINT.data().errors, result = [];
|
||||
if (errors) parseErrors(errors, result);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue