Focus the editable content when opening a codemirror pad

This commit is contained in:
yflory
2017-09-13 18:09:55 +02:00
parent bafa401473
commit 47cfa0cf45
3 changed files with 8 additions and 12 deletions

View File

@@ -49,6 +49,7 @@ define([
readOnly: true
});
editor.setValue(Messages.codeInitialState);
editor.focus();
var setMode = exp.setMode = function (mode, cb) {
exp.highlightMode = mode;