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:
Puneeth Chaganti
2019-01-25 08:13:12 +05:30
committed by Tim Abbott
parent 9c377a05f3
commit 33a322baa2

View File

@@ -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;