From 4942cf64259c082bed848f1d62c1d9308d65f3c9 Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Tue, 20 Dec 2016 12:12:24 +0100 Subject: [PATCH] Fixed pasting of paragraphs --- .../install/files/js/3rdParty/redactor2/plugins/WoltLabClean.js | 2 ++ 1 file changed, 2 insertions(+) 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); } -- 2.20.1