summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYukai Huang2016-10-08 23:03:33 +0800
committerYukai Huang2016-10-08 23:03:33 +0800
commit2b678c1f129abde7e20f471018c55626f57cae97 (patch)
treea1aebbe491d569ccf3e7ca078485d981a109f232
parent963a435ae1e9248b42b4665acf106dcffa549678 (diff)
Make editor variable global
-rw-r--r--public/js/index.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/public/js/index.js b/public/js/index.js
index 3801eea2..d84d0a8d 100644
--- a/public/js/index.js
+++ b/public/js/index.js
@@ -464,7 +464,7 @@ var fileTypes = {
//editor settings
var textit = document.getElementById("textit");
if (!textit) throw new Error("There was no textit area!");
-var editor = CodeMirror.fromTextArea(textit, {
+window.editor = CodeMirror.fromTextArea(textit, {
mode: 'gfm',
backdrop: 'gfm',
keyMap: "sublime",