From 1f09a531f8cf1072f5a2418fee5a1a42c3095a8c Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Tue, 17 Jan 2017 13:53:25 +0100 Subject: [PATCH] Properly cancel some pasting in Chrome --- .../install/files/js/3rdParty/redactor2/plugins/WoltLabPaste.js | 1 + 1 file changed, 1 insertion(+) 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) { -- 2.20.1