From 33a322baa2a71c25ce42bbddbfe4ada2f9459a00 Mon Sep 17 00:00:00 2001 From: Puneeth Chaganti Date: Fri, 25 Jan 2019 08:13:12 +0530 Subject: [PATCH] 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. --- static/js/copy_and_paste.js | 1 + 1 file changed, 1 insertion(+) diff --git a/static/js/copy_and_paste.js b/static/js/copy_and_paste.js index 9a361042d3..8ff19c37cb 100644 --- a/static/js/copy_and_paste.js +++ b/static/js/copy_and_paste.js @@ -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;