From 8ca7c36380afe39409e1d30c6d72b5be9099043a Mon Sep 17 00:00:00 2001 From: tophf Date: Wed, 15 Nov 2017 04:27:33 +0300 Subject: [PATCH] focus code on opening usercss editor --- edit/source-editor.js | 1 + 1 file changed, 1 insertion(+) 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();