From 7b3870e7ff7b749ced18efefd88a8cc4464f0e2b Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Wed, 28 Sep 2016 11:36:01 +0200 Subject: [PATCH] Pasting from clipboard was breaking keydown handling --- .../files/js/3rdParty/redactor2/plugins/WoltLabPaste.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/wcfsetup/install/files/js/3rdParty/redactor2/plugins/WoltLabPaste.js b/wcfsetup/install/files/js/3rdParty/redactor2/plugins/WoltLabPaste.js index 29a0d09905..c328a41aad 100644 --- a/wcfsetup/install/files/js/3rdParty/redactor2/plugins/WoltLabPaste.js +++ b/wcfsetup/install/files/js/3rdParty/redactor2/plugins/WoltLabPaste.js @@ -106,6 +106,8 @@ $.Redactor.prototype.WoltLabPaste = function() { WCF.System.Event.fireEvent('com.woltlab.wcf.redactor2', 'pasteFromClipboard_' + this.$element[0].id, { blob: this.utils.dataURItoBlob(e.target.result) }); + + this.rtePaste = false; }).bind(this); var transparentGif = 'data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7'; @@ -166,6 +168,7 @@ $.Redactor.prototype.WoltLabPaste = function() { }).bind(this), 50); } + this.rtePaste = false; }).bind(this); this.paste.clipboardUpload = function () { /* not required, images are handled in `paste.insert()` below */ }; -- 2.20.1