mirror of https://github.com/zulip/zulip.git
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:
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;
|
||||
|
|
Loading…
Reference in New Issue