diff --git a/public/js/index.js b/public/js/index.js index 3801eea25..d84d0a8d6 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",