Skip to content

Commit 31b41c0

Browse files
committed
added autofocus and tabsise
1 parent 8efcaa3 commit 31b41c0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/editor.js

+2
Original file line numberDiff line numberDiff line change
@@ -90,8 +90,10 @@ Editor.prototype.render = function(el) {
9090
this.codemirror = CodeMirror.fromTextArea(el, {
9191
mode: 'markdown',
9292
theme: 'paper',
93+
tabSize: '2',
9394
indentWithTabs: true,
9495
lineNumbers: false,
96+
autofocus: true,
9597
extraKeys: keyMaps
9698
});
9799

0 commit comments

Comments
 (0)