Fixed gif selection through inline gif selector

refs https://github.com/TryGhost/Team/issues/1225

- updated `selector-tenor` component to use the correct passed-in action
- fixed focus moving to top of the editor after selecting a gif or unsplash image
This commit is contained in:
Kevin Ansfield 2021-11-24 18:48:49 +00:00
parent 6d72325867
commit dbf242a149
2 changed files with 1 additions and 6 deletions

View File

@ -267,10 +267,6 @@ export default Component.extend({
}
set(this.payload, 'imageSelector', undefined);
// ensure focus is returned to the editor so that the card which
// appears selected behaves as if it's selected
this.editor.focus();
},
updateHref(href) {

View File

@ -60,7 +60,6 @@ export default class KoenigCardImageTenorSelector extends Component {
type: 'gif'
};
this.args.selector.insertCard('image', payload);
this.args.selector.close();
this.args.select(payload);
}
}