]> git.ipfire.org Git - ipfire.org.git/commitdiff
wiki: editor: Set focus on textarea when launching
authorMichael Tremer <michael.tremer@ipfire.org>
Tue, 27 Aug 2019 13:53:54 +0000 (14:53 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Tue, 27 Aug 2019 14:22:54 +0000 (15:22 +0100)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/static/js/editor.js

index 11be2666f6f33dbf6f85e123c6afcb24a96e9ce2..9ee3087836037e53a3fec5a439471411d86d50fc 100644 (file)
@@ -20,6 +20,9 @@ class Editor {
         this.bindKeys();
 
         console.log("Editor initialised for " + this.parent);
+
+        // Set focus on the textarea
+        this.textarea.focus();
     }
 
     activateTextArea() {