Extract modeType

This commit is contained in:
Yukai Huang
2017-04-11 11:48:59 +08:00
parent 18a6f9063e
commit 68ccee20b3
3 changed files with 15 additions and 13 deletions

View File

@@ -80,6 +80,7 @@ import { preventXSS } from './render'
import Editor from './lib/editor'
import getUIElements from './lib/editor/ui-elements'
import modeType from './lib/editor/modeType'
var defaultTextHeight = 20
var viewportMargin = 20
@@ -226,17 +227,6 @@ var supportExtraTags = [
}
}
]
window.modeType = {
edit: {
name: 'edit'
},
view: {
name: 'view'
},
both: {
name: 'both'
}
}
var statusType = {
connected: {
msg: 'CONNECTED',