From: Alexander Ebert Date: Mon, 19 Sep 2016 21:05:58 +0000 (+0200) Subject: Fixed pasted code incorrectly treated as HTML X-Git-Tag: 3.0.0_Beta_1~77 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=30813e0b580a1dff9a687fdeecd097f5a12deb64;p=GitHub%2FWoltLab%2FWCF.git Fixed pasted code incorrectly treated as HTML --- diff --git a/wcfsetup/install/files/js/3rdParty/redactor2/plugins/WoltLabClean.js b/wcfsetup/install/files/js/3rdParty/redactor2/plugins/WoltLabClean.js index 373dcab826..233f8bf4e1 100644 --- a/wcfsetup/install/files/js/3rdParty/redactor2/plugins/WoltLabClean.js +++ b/wcfsetup/install/files/js/3rdParty/redactor2/plugins/WoltLabClean.js @@ -76,6 +76,10 @@ $.Redactor.prototype.WoltLabClean = function() { var mpOnPaste = this.clean.onPaste; this.clean.onPaste = (function (html, data, insert) { + if (data.pre) { + return mpOnPaste.call(this, html, data, insert); + } + var div = elCreate('div'); div.innerHTML = html;