From: Michael Tremer Date: Tue, 27 Aug 2019 13:53:54 +0000 (+0100) Subject: wiki: editor: Set focus on textarea when launching X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=717811a7f54c4dd35456a23e0137171e852edc2c;p=ipfire.org.git wiki: editor: Set focus on textarea when launching Signed-off-by: Michael Tremer --- diff --git a/src/static/js/editor.js b/src/static/js/editor.js index 11be2666..9ee30878 100644 --- a/src/static/js/editor.js +++ b/src/static/js/editor.js @@ -20,6 +20,9 @@ class Editor { this.bindKeys(); console.log("Editor initialised for " + this.parent); + + // Set focus on the textarea + this.textarea.focus(); } activateTextArea() {