diff --git a/edit/source-editor.js b/edit/source-editor.js index 922b301d..660b26f8 100644 --- a/edit/source-editor.js +++ b/edit/source-editor.js @@ -49,6 +49,7 @@ function createSourceEditor(style) { const cm = CodeMirror.fromTextArea($('#sections textarea')); // too many functions depend on this global editors.push(cm); + cm.focus(); // draw metas info updateMeta();