compose: Have at least 1 new line before and after a giphy gif.

Until now, a giphy gif was inserted in an inline manner, but now we insert
it as a block, with 0 blank lines before and after it.
This commit is contained in:
N-Shar-ma 2023-04-05 21:53:20 +05:30 committed by Tim Abbott
parent 64ec503994
commit 61fa24fd5e
1 changed files with 2 additions and 0 deletions

View File

@ -112,6 +112,8 @@ async function renderGIPHYGrid(targetEl) {
compose_ui.insert_syntax_and_focus(
`[](${props.images.downsized_medium.url})`,
$textarea,
"block",
1,
);
hide_giphy_popover();
},