Make editor variable global
This commit is contained in:
parent
963a435ae1
commit
2b678c1f12
1 changed files with 1 additions and 1 deletions
|
@ -464,7 +464,7 @@ var fileTypes = {
|
||||||
//editor settings
|
//editor settings
|
||||||
var textit = document.getElementById("textit");
|
var textit = document.getElementById("textit");
|
||||||
if (!textit) throw new Error("There was no textit area!");
|
if (!textit) throw new Error("There was no textit area!");
|
||||||
var editor = CodeMirror.fromTextArea(textit, {
|
window.editor = CodeMirror.fromTextArea(textit, {
|
||||||
mode: 'gfm',
|
mode: 'gfm',
|
||||||
backdrop: 'gfm',
|
backdrop: 'gfm',
|
||||||
keyMap: "sublime",
|
keyMap: "sublime",
|
||||||
|
|
Loading…
Reference in a new issue