Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

compose: Fix bug where pasted content would only go to the compose box.

N-Shar-ma5c73744aca2c
diff --git a/web/src/copy_and_paste.js b/web/src/copy_and_paste.js
index 5baceeb3882..12a51f76ea5 100644
--- a/web/src/copy_and_paste.js
+++ b/web/src/copy_and_paste.js
@@ -529,7 +529,7 @@ export function paste_handler(event) {
event.preventDefault();
event.stopPropagation();
const text = paste_handler_converter(paste_html);
- compose_ui.insert_syntax_and_focus(text);
+ compose_ui.insert_syntax_and_focus(text, $textarea);
}
}
}