From 7bc8de130bf6e0989df1e833acc7a4eee7d8394d Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Tue, 13 Sep 2016 12:19:59 +0200 Subject: [PATCH] Fixed code pasting in IE --- .../files/js/3rdParty/redactor2/plugins/WoltLabPaste.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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; -- 2.20.1