From: Alexander Ebert Date: Tue, 17 Jan 2017 12:53:25 +0000 (+0100) Subject: Properly cancel some pasting in Chrome X-Git-Tag: 3.0.1~28 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=1f09a531f8cf1072f5a2418fee5a1a42c3095a8c;p=GitHub%2FWoltLab%2FWCF.git Properly cancel some pasting in Chrome --- diff --git a/wcfsetup/install/files/js/3rdParty/redactor2/plugins/WoltLabPaste.js b/wcfsetup/install/files/js/3rdParty/redactor2/plugins/WoltLabPaste.js index edf1bce95e..d3b3a2df42 100644 --- a/wcfsetup/install/files/js/3rdParty/redactor2/plugins/WoltLabPaste.js +++ b/wcfsetup/install/files/js/3rdParty/redactor2/plugins/WoltLabPaste.js @@ -87,6 +87,7 @@ $.Redactor.prototype.WoltLabPaste = function() { if (this.detect.isWebkit() && clipboard.items.length > 1) { file = clipboard.items[1].getAsFile(); cancelPaste = true; + e.preventDefault(); } if (file === null) {