From 30813e0b580a1dff9a687fdeecd097f5a12deb64 Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Mon, 19 Sep 2016 23:05:58 +0200 Subject: [PATCH] Fixed pasted code incorrectly treated as HTML --- .../files/js/3rdParty/redactor2/plugins/WoltLabClean.js | 4 ++++ 1 file changed, 4 insertions(+) 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; -- 2.20.1