mirror of
https://github.com/zulip/zulip.git
synced 2025-11-10 00:46:03 +00:00
compose: Have at least 1 new line before and after a video call link.
Until now, a video call link 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:
@@ -374,7 +374,7 @@ export function update_email(user_id, new_email) {
|
|||||||
|
|
||||||
function insert_video_call_url(url, target_textarea) {
|
function insert_video_call_url(url, target_textarea) {
|
||||||
const link_text = $t({defaultMessage: "Click to join video call"});
|
const link_text = $t({defaultMessage: "Click to join video call"});
|
||||||
compose_ui.insert_syntax_and_focus(`[${link_text}](${url})`, target_textarea);
|
compose_ui.insert_syntax_and_focus(`[${link_text}](${url})`, target_textarea, "block", 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
export function render_and_show_preview($preview_spinner, $preview_content_box, content) {
|
export function render_and_show_preview($preview_spinner, $preview_content_box, content) {
|
||||||
|
|||||||
Reference in New Issue
Block a user