diff --git a/ghost/admin/app/components/gh-koenig-editor-lexical.hbs b/ghost/admin/app/components/gh-koenig-editor-lexical.hbs
index 62beecfad7..d0a5a39afe 100644
--- a/ghost/admin/app/components/gh-koenig-editor-lexical.hbs
+++ b/ghost/admin/app/components/gh-koenig-editor-lexical.hbs
@@ -4,7 +4,7 @@
bottom && event.clientY > bottom) {
- // let {post} = this.koenigEditor;
- // let range = post.toRange();
- // let {tailSection} = range;
-
- // event.preventDefault();
- // this.koenigEditor.focus();
-
- // // we should always have a visible cursor when focusing
- // // at the bottom so create an empty paragraph if last
- // // section is a card
- // if (tailSection.isCardSection) {
- // this.koenigEditor.run((postEditor) => {
- // let newSection = postEditor.builder.createMarkupSection('p');
- // postEditor.insertSectionAtEnd(newSection);
- // tailSection = newSection;
- // });
- // }
-
- // this.koenigEditor.selectRange(tailSection.tailPosition());
-
- // // ensure we're scrolled to the bottom
- // this.containerElement.scrollTop = this.containerElement.scrollHeight;
- // }
- // }
- // }
+ // if a mousedown and subsequent mouseup occurs below the editor
+ // canvas, focus the editor and put the cursor at the end of the
+ // document
+ if (this.mousedownY > bottom && event.clientY > bottom) {
+ this.editorAPI.focusEditor();
+ }
+ }
+ }
// _setupEditor(koenig) {
// let component = this;