From: Alexander Ebert Date: Tue, 20 Dec 2016 11:12:24 +0000 (+0100) Subject: Fixed pasting of paragraphs X-Git-Tag: 3.0.0_RC_2~8 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=4942cf64259c082bed848f1d62c1d9308d65f3c9;p=GitHub%2FWoltLab%2FWCF.git Fixed pasting of paragraphs --- diff --git a/wcfsetup/install/files/js/3rdParty/redactor2/plugins/WoltLabClean.js b/wcfsetup/install/files/js/3rdParty/redactor2/plugins/WoltLabClean.js index 060c3b7616..852ce1b8a4 100644 --- a/wcfsetup/install/files/js/3rdParty/redactor2/plugins/WoltLabClean.js +++ b/wcfsetup/install/files/js/3rdParty/redactor2/plugins/WoltLabClean.js @@ -191,6 +191,8 @@ $.Redactor.prototype.WoltLabClean = function() { if (parent.nodeName === 'P') { var p = elCreate('p'); + p.innerHTML = '
'; + while (marker.nextSibling) { p.appendChild(marker.nextSibling); }