Commit 1d57d954 authored by Jonny Bradley's avatar Jonny Bradley

[FIX] codemirror: Last minor update introduced more js error to cover up - we...

[FIX] codemirror: Last minor update introduced more js error to cover up - we must be doing something wrong...
parent 34678192
...@@ -18,7 +18,7 @@ function codemirrorModes($minify = true) ...@@ -18,7 +18,7 @@ function codemirrorModes($minify = true)
if (!file_exists($jsModes) || !file_exists($cssModes)) { if (!file_exists($jsModes) || !file_exists($cssModes)) {
//codemirror theme //codemirror theme
$js .= 'window.codeMirrorTheme = "' . $prefs['feature_syntax_highlighter_theme'] .'"; $js .= 'window.codeMirrorTheme = "' . $prefs['feature_syntax_highlighter_theme'] .'";
test = { mode: function () {} } test = { mode: function () {}, indentation: function() {} }
'; // test is a dummy line to supress exceptions from mode tests in cm 3 '; // test is a dummy line to supress exceptions from mode tests in cm 3
//load modes first //load modes first
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment