mirror of
https://github.com/status-im/codimd.git
synced 2025-02-22 19:38:23 +00:00
Make editor variable global
This commit is contained in:
parent
963a435ae1
commit
2b678c1f12
@ -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",
|
||||
|
Loading…
x
Reference in New Issue
Block a user