From 717811a7f54c4dd35456a23e0137171e852edc2c Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Tue, 27 Aug 2019 14:53:54 +0100 Subject: [PATCH] wiki: editor: Set focus on textarea when launching Signed-off-by: Michael Tremer --- src/static/js/editor.js | 3 +++ 1 file changed, 3 insertions(+) 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() { -- 2.47.2