compose: Paste content into the compose box without adding any space.

We replace the call to `insert_syntax_and_focus` with a direct call to
`insert_and_scroll_into_view` when pasting content into the compose box,
which fixes the bug where leading and trailing spaces were added to any
pasted content.
This commit is contained in:
N-Shar-ma 2023-11-07 13:54:56 +05:30 committed by Tim Abbott
parent 24e8119350
commit dac56b4d08
1 changed files with 1 additions and 1 deletions

View File

@ -547,7 +547,7 @@ export function paste_handler(event) {
event.preventDefault();
event.stopPropagation();
const text = paste_handler_converter(paste_html);
compose_ui.insert_syntax_and_focus(text, $textarea);
compose_ui.insert_and_scroll_into_view(text, $textarea);
}
}
}