Skip to content

Commit cc30d37

Browse files
committed
Fix variable exporting error
1 parent e97b609 commit cc30d37

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

public/js/index.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ import getUIElements from './lib/editor/ui-elements'
8383

8484
var defaultTextHeight = 20
8585
var viewportMargin = 20
86+
var defaultEditorMode = 'gfm'
8687

8788
var idleTime = 300000 // 5 mins
8889
var updateViewDebounce = 100
@@ -363,7 +364,9 @@ function updateStatusBar () {
363364
}
364365

365366
// initalize ui reference
367+
// TODO: fix ui exporting
366368
const ui = getUIElements()
369+
window.ui = ui
367370

368371
// page actions
369372
var opts = {

public/js/lib/editor/index.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ const jumpToAddressBarKeymapName = isMac ? 'Cmd-L' : 'Ctrl-L'
1010
export default class Editor {
1111
constructor () {
1212
this.editor = null
13-
13+
this.jumpToAddressBarKeymapValue = null
1414
this.defaultExtraKeys = {
1515
F10: function (cm) {
1616
cm.setOption('fullScreen', !cm.getOption('fullScreen'))
@@ -116,8 +116,6 @@ export default class Editor {
116116
utils.wrapTextWith(this.editor, cm, 'Backspace')
117117
}
118118
}
119-
120-
this.jumpToAddressBarKeymapValue = null
121119
}
122120

123121
getStatusBarTemplate (callback) {

0 commit comments

Comments
 (0)