]> BookStack Code Mirror - bookstack/blobdiff - resources/js/components/markdown-editor.js
removed test_slug_multi_byte_lower_casing and added new test test_slug_multi_byte_ur...
[bookstack] / resources / js / components / markdown-editor.js
index 4dc240d485429ceaf662bdfea3ab95ff96a9de81..cc9a7b859ddb9eeb6f540d1b1c545dd8f1820987 100644 (file)
@@ -557,6 +557,11 @@ class MarkdownEditor {
             const prependLineCount = markdown.split('\n').length;
             this.cm.setCursor(cursorPos.line + prependLineCount, cursorPos.ch);
         });
+
+        // Focus on editor
+        window.$events.listen('editor::focus', () => {
+            this.cm.focus();
+        });
     }
 }