From d4d69f4b30466c510b60454eb80213e81df863c1 Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Tue, 6 Sep 2016 12:59:31 +0200 Subject: [PATCH] Improved handling of empty 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 02c15009cf..a3d17e5c59 100644 --- a/wcfsetup/install/files/js/3rdParty/redactor2/plugins/WoltLabClean.js +++ b/wcfsetup/install/files/js/3rdParty/redactor2/plugins/WoltLabClean.js @@ -30,6 +30,8 @@ $.Redactor.prototype.WoltLabClean = function() { html = div.innerHTML; } + html = html.replace(/

\u200B<\/p>/g, '


'); + html = mpOnSync.call(this, html); div.innerHTML = html; -- 2.20.1