]> BookStack Code Mirror - bookstack/blobdiff - resources/js/components/wysiwyg-editor.js
Replace node-sass with dart-sass
[bookstack] / resources / js / components / wysiwyg-editor.js
index 9ed00c07839c6b8896116348735a94037fd07480..1c8c71099434e9c9422f7846be50a4bbc2f769bb 100644 (file)
@@ -402,6 +402,10 @@ function listenForBookStackEditorEvents(editor) {
         editor.setContent(content);
     });
 
+    // Focus on the editor
+    window.$events.listen('editor::focus', () => {
+        editor.focus();
+    });
 }
 
 class WysiwygEditor {