codemirror 3.18 with enabled the fullscreen addon
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
// Depends on jsonlint.js from https://github.com/zaach/jsonlint
|
||||
|
||||
CodeMirror.jsonValidator = function(text) {
|
||||
// declare global: jsonlint
|
||||
|
||||
CodeMirror.registerHelper("lint", "json", function(text) {
|
||||
var found = [];
|
||||
jsonlint.parseError = function(str, hash) {
|
||||
var loc = hash.loc;
|
||||
@@ -11,4 +13,5 @@ CodeMirror.jsonValidator = function(text) {
|
||||
try { jsonlint.parse(text); }
|
||||
catch(e) {}
|
||||
return found;
|
||||
};
|
||||
});
|
||||
CodeMirror.jsonValidator = CodeMirror.lint.json; // deprecated
|
||||
|
||||
Reference in New Issue
Block a user