Skip to content

Commit

Permalink
Work in a clean git clone without codemirror
Browse files Browse the repository at this point in the history
  • Loading branch information
einars committed Dec 21, 2012
1 parent f431022 commit 1c865b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.html
Expand Up @@ -264,7 +264,7 @@

var default_text = "// This is just a sample script. Paste your real code (javascript or HTML) here.\n\nif ('this_is'==/an_example/){of_beautifer();}else{var a=b?(c%d):e[f];}";

if (the.use_codemirror) {
if (the.use_codemirror && typeof CodeMirror !== 'undefined') {
the.editor = CodeMirror.fromTextArea($('#source').get(0))
the.editor.setValue(default_text);
$('.CodeMirror').click(function () {
Expand Down

0 comments on commit 1c865b7

Please sign in to comment.