mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-30 21:40:39 +03:00
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:
parent
6d72325867
commit
dbf242a149
@ -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) {
|
||||
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user