X-Git-Url: http://source.bookstackapp.com/bookstack/blobdiff_plain/b94b945fb03e21a1997cfe6e50148967586cb26d..refs/pull/2022/head:/resources/js/vues/code-editor.js diff --git a/resources/js/vues/code-editor.js b/resources/js/vues/code-editor.js index 48b4e1766..f888e6227 100644 --- a/resources/js/vues/code-editor.js +++ b/resources/js/vues/code-editor.js @@ -5,6 +5,7 @@ const methods = { if (!this.editor) this.editor = codeLib.popupEditor(this.$refs.editor, this.language); this.$refs.overlay.components.overlay.show(() => { codeLib.updateLayout(this.editor); + this.editor.focus(); }); }, hide() {