From ba532aa815ac89a51f60c2f1eb891ada6a63a6ea Mon Sep 17 00:00:00 2001 From: Kevin Ansfield Date: Tue, 30 Nov 2021 18:02:53 +0000 Subject: [PATCH] Reverted insertion of blank paragraph when selecting unsplash/gif image refs https://github.com/TryGhost/Admin/commit/e419e4e99fd4aecf358938167deaf1bb08987582 - the behaviour wasn't desirable in all cases, reverting to the previous behaviour of selecting the card after image selection --- .../lib/koenig-editor/addon/components/koenig-card-image.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ghost/admin/lib/koenig-editor/addon/components/koenig-card-image.js b/ghost/admin/lib/koenig-editor/addon/components/koenig-card-image.js index e16fafe3de..47728691ef 100644 --- a/ghost/admin/lib/koenig-editor/addon/components/koenig-card-image.js +++ b/ghost/admin/lib/koenig-editor/addon/components/koenig-card-image.js @@ -252,8 +252,10 @@ export default Component.extend({ // create undo snapshot when selecting an image this.editor.run(() => { saveCard(payload, false); - this.addParagraphAfterCard({scrollIntoView: true}); }); + this.deselectCard(); + this.selectCard(); + this.scrollToCard(); }, closeImageSelector(reselectParagraph = true) {