Do not autofocus textarea, or give option
Opened this issue · 3 comments
decademoon commented
Currently codemirror is initialized with this code:
this.codemirror = CodeMirror.fromTextArea(el, {
mode: 'markdown',
theme: 'paper',
tabSize: '2',
indentWithTabs: true,
lineNumbers: false,
autofocus: true,
extraKeys: keyMaps
});
Can we have the option to set autofocus to false, or have the default codemirror behavior?
jcolemorrison commented
Yeah, an outlet into the code mirror settings would be amazing!
lepture commented
Try to add an option for codemirror in the render
method.
WesCossick commented
SimpleMDE, which is based on lepture's editor, includes the option to disable/enable autofocus, along with many other options.