summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--public/js/index.js3
-rw-r--r--public/js/lib/editor/index.js4
2 files changed, 4 insertions, 3 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 = {
diff --git a/public/js/lib/editor/index.js b/public/js/lib/editor/index.js
index a97fd976..6ae40d82 100644
--- a/public/js/lib/editor/index.js
+++ b/public/js/lib/editor/index.js
@@ -10,7 +10,7 @@ const jumpToAddressBarKeymapName = isMac ? 'Cmd-L' : 'Ctrl-L'
export default class Editor {
constructor () {
this.editor = null
-
+ this.jumpToAddressBarKeymapValue = null
this.defaultExtraKeys = {
F10: function (cm) {
cm.setOption('fullScreen', !cm.getOption('fullScreen'))
@@ -116,8 +116,6 @@ export default class Editor {
utils.wrapTextWith(this.editor, cm, 'Backspace')
}
}
-
- this.jumpToAddressBarKeymapValue = null
}
getStatusBarTemplate (callback) {