focus code on opening usercss editor

This commit is contained in:
tophf 2017-11-15 04:27:33 +03:00
parent 8517e392fe
commit 8ca7c36380

View File

@ -49,6 +49,7 @@ function createSourceEditor(style) {
const cm = CodeMirror.fromTextArea($('#sections textarea')); const cm = CodeMirror.fromTextArea($('#sections textarea'));
// too many functions depend on this global // too many functions depend on this global
editors.push(cm); editors.push(cm);
cm.focus();
// draw metas info // draw metas info
updateMeta(); updateMeta();