From: Alexander Ebert Date: Tue, 6 Sep 2016 10:59:31 +0000 (+0200) Subject: Improved handling of empty paragraphs X-Git-Tag: 3.0.0_Beta_1~281^2~4 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=d4d69f4b30466c510b60454eb80213e81df863c1;p=GitHub%2FWoltLab%2FWCF.git Improved handling of empty paragraphs --- 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;