Autofocus code mirror on load

This commit is contained in:
Jori Lallo
2016-09-02 15:52:29 -07:00
parent af08483185
commit 3b6c620e58

View File

@ -120,6 +120,7 @@ class MarkdownEditor extends React.Component {
viewportMargin: Infinity, viewportMargin: Infinity,
scrollbarStyle: 'null', scrollbarStyle: 'null',
theme: 'atlas', theme: 'atlas',
autofocus: true,
extraKeys: { extraKeys: {
Enter: 'newlineAndIndentContinueMarkdownList', Enter: 'newlineAndIndentContinueMarkdownList',