From: Alexander Ebert Date: Tue, 13 Sep 2016 10:19:59 +0000 (+0200) Subject: Fixed code pasting in IE X-Git-Tag: 3.0.0_Beta_1~194 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=7bc8de130bf6e0989df1e833acc7a4eee7d8394d;p=GitHub%2FWoltLab%2FWCF.git Fixed code pasting in IE --- diff --git a/wcfsetup/install/files/js/3rdParty/redactor2/plugins/WoltLabPaste.js b/wcfsetup/install/files/js/3rdParty/redactor2/plugins/WoltLabPaste.js index e115de25d1..a3b4a281f7 100644 --- a/wcfsetup/install/files/js/3rdParty/redactor2/plugins/WoltLabPaste.js +++ b/wcfsetup/install/files/js/3rdParty/redactor2/plugins/WoltLabPaste.js @@ -35,7 +35,9 @@ $.Redactor.prototype.WoltLabPaste = function() { this.paste.getPasteBoxCode = (function (pre) { var returnValue = mpGetPasteBoxCode.call(this, pre); - if (pre && !returnValue) { + // use clipboard data if paste box is flawed or when + // pasting in IE 11 where clipboard data is more reliable + if (pre && (!returnValue || isIe)) { return clipboardData; } @@ -54,7 +56,6 @@ $.Redactor.prototype.WoltLabPaste = function() { return (window.clipboardData.files.length > 0); } - if (this.detect.isFirefox()) { return false;