Skip to content

Commit

Permalink
feat: 丰富快捷键
Browse files Browse the repository at this point in the history
Fixed:#319
  • Loading branch information
sunsonliu committed Sep 11, 2022
1 parent 3dd20fe commit 07f30c9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Editor.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ import 'codemirror/addon/fold/xml-fold';
import 'codemirror/addon/edit/matchtags';
import 'codemirror/addon/search/searchcursor';
import 'codemirror/addon/display/placeholder';
import 'codemirror/keymap/sublime';
// import 'codemirror/addon/selection/active-line';
// import 'codemirror/addon/edit/matchbrackets';
import htmlParser from '@/utils/htmlparser';
Expand Down Expand Up @@ -74,6 +75,7 @@ export default class Editor {
// 设置为 contenteditable 对输入法定位更友好
// 但已知会影响某些悬浮菜单的定位,如粘贴选择文本或markdown模式的菜单
// inputStyle: 'contenteditable',
keyMap: 'sublime',
},
toolbars: {},
onKeydown() {},
Expand Down

0 comments on commit 07f30c9

Please sign in to comment.