lintWith is now lint and false by default

This initialisation should be false to start with as we set PHP mode as
a basis and have no linter for that
We set the mode in processes/on-editor-load.php and then lint: true if
it's a JS mode.
This commit is contained in:
Matt Pass
2014-10-22 12:19:49 +01:00
parent 574e71f5e7
commit b601ea0e85

View File

@@ -184,7 +184,7 @@ function createNewCMInstance(num) {
autoCloseBrackets: true,
highlightSelectionMatches: true,
showTrailingSpace: true,
lintWith: <?php if ($ICEcoder['codeAssist']) {echo 'fileName && fileName.indexOf(".js")>-1 ? CodeMirror.javascriptValidator : ';};?>false,
lint: false,
keyMap: "ICEcoder"
};