File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -83,6 +83,7 @@ import getUIElements from './lib/editor/ui-elements'
8383
8484var defaultTextHeight = 20
8585var viewportMargin = 20
86+ var defaultEditorMode = 'gfm'
8687
8788var idleTime = 300000 // 5 mins
8889var updateViewDebounce = 100
@@ -363,7 +364,9 @@ function updateStatusBar () {
363364}
364365
365366// initalize ui reference
367+ // TODO: fix ui exporting
366368const ui = getUIElements ( )
369+ window . ui = ui
367370
368371// page actions
369372var opts = {
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ const jumpToAddressBarKeymapName = isMac ? 'Cmd-L' : 'Ctrl-L'
1010export 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 ) {
You can’t perform that action at this time.
0 commit comments