From: Alexander Ebert Date: Mon, 21 Sep 2020 10:05:45 +0000 (+0200) Subject: Prevent data being pasted twice in Chromium on Android X-Git-Tag: 5.3.0_Beta_1~7^2~3^2 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=96b608196189a4c99e8416c6974d1031bd5654d3;p=GitHub%2FWoltLab%2FWCF.git Prevent data being pasted twice in Chromium on Android --- diff --git a/wcfsetup/install/files/js/3rdParty/redactor2/plugins/WoltLabPaste.js b/wcfsetup/install/files/js/3rdParty/redactor2/plugins/WoltLabPaste.js index 8f9434bab5..beebe1dec7 100644 --- a/wcfsetup/install/files/js/3rdParty/redactor2/plugins/WoltLabPaste.js +++ b/wcfsetup/install/files/js/3rdParty/redactor2/plugins/WoltLabPaste.js @@ -18,6 +18,9 @@ $.Redactor.prototype.WoltLabPaste = function() { var mpInitChromeOnAndroid = (function (e) { this.rtePaste = true; var pre = !!(this.opts.type === 'pre' || this.utils.isCurrentOrParent('pre')); + if (pre) { + e.preventDefault(); + } this.utils.saveScroll(); this.selection.save();