summaryrefslogtreecommitdiff
path: root/public/js/index.js
diff options
context:
space:
mode:
authorYukai Huang2017-04-11 11:48:59 +0800
committerYukai Huang2017-05-07 20:37:27 +0800
commit68ccee20b3709b9a0499d659c74ac0a298a9ffeb (patch)
tree466eb655de3e069024b1ae9dcc96e207c0bef886 /public/js/index.js
parent18a6f9063ebab9913883f8bef78ad95736e7627d (diff)
Extract modeType
Diffstat (limited to 'public/js/index.js')
-rw-r--r--public/js/index.js12
1 files changed, 1 insertions, 11 deletions
diff --git a/public/js/index.js b/public/js/index.js
index d28f4d6c..27b0295d 100644
--- a/public/js/index.js
+++ b/public/js/index.js
@@ -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',