diff --git a/editor.php b/editor.php index 2722593..3b4bb39 100644 --- a/editor.php +++ b/editor.php @@ -177,7 +177,7 @@ function createNewCMInstance(num) { autoCloseTags: true, highlightSelectionMatches: true, showTrailingSpace: true, - lintWith: fileName.indexOf(".js")>-1 ? CodeMirror.javascriptValidator : false, + lintWith: fileName && fileName.indexOf(".js")>-1 ? CodeMirror.javascriptValidator : false, keyMap: "ICEcoder", onKeyEvent: function(thisCM, e) { top.ICEcoder.redoChangedContent(e);