summaryrefslogtreecommitdiff
path: root/public/js/index.js
diff options
context:
space:
mode:
authorYukai Huang2017-03-13 22:00:20 +0800
committerYukai Huang2017-03-13 22:00:20 +0800
commitcc30d370f7cf662eb4ea21fb93148a30bd8764d2 (patch)
tree42ef566a9a6d2e4de2e478743df0d14e9ee03577 /public/js/index.js
parente97b609d91adab015148184935369216a199038e (diff)
Fix variable exporting error
Diffstat (limited to '')
-rw-r--r--public/js/index.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/public/js/index.js b/public/js/index.js
index 7764fb58..53dd647c 100644
--- a/public/js/index.js
+++ b/public/js/index.js
@@ -83,6 +83,7 @@ import getUIElements from './lib/editor/ui-elements'
var defaultTextHeight = 20
var viewportMargin = 20
+var defaultEditorMode = 'gfm'
var idleTime = 300000 // 5 mins
var updateViewDebounce = 100
@@ -363,7 +364,9 @@ function updateStatusBar () {
}
// initalize ui reference
+// TODO: fix ui exporting
const ui = getUIElements()
+window.ui = ui
// page actions
var opts = {