mirror of
https://github.com/zulip/zulip.git
synced 2025-11-14 19:06:09 +00:00
paste: Hook up the paste handler to the message edit form.
This ensures that any nice pasting features we have in the compose box also apply to message editing.
This commit is contained in:
committed by
Tim Abbott
parent
9c377a05f3
commit
33a322baa2
@@ -253,6 +253,7 @@ exports.paste_handler = function (event) {
|
||||
exports.initialize = function () {
|
||||
$(document).on('copy', copy_handler);
|
||||
$("#compose-textarea").bind('paste', exports.paste_handler);
|
||||
$('body').on('paste', '#message_edit_form', exports.paste_handler);
|
||||
};
|
||||
|
||||
return exports;
|
||||
|
||||
Reference in New Issue
Block a user