Reverted insertion of blank paragraph when selecting unsplash/gif image

refs e419e4e99f

- the behaviour wasn't desirable in all cases, reverting to the previous behaviour of selecting the card after image selection
This commit is contained in:
Kevin Ansfield 2021-11-30 18:02:53 +00:00
parent 024b27c8dd
commit ba532aa815

View File

@ -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) {