From: Alexander Ebert Date: Tue, 3 Mar 2015 12:27:16 +0000 (+0100) Subject: Fixed a few issues X-Git-Tag: 2.1.1~11 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=b9aa466c4380a93eccc4a8aee5e63007ad44ba49;p=GitHub%2FWoltLab%2FWCF.git Fixed a few issues --- diff --git a/wcfsetup/install/files/js/3rdParty/redactor/plugins/wutil.js b/wcfsetup/install/files/js/3rdParty/redactor/plugins/wutil.js index 8a29c9b160..2824465d88 100644 --- a/wcfsetup/install/files/js/3rdParty/redactor/plugins/wutil.js +++ b/wcfsetup/install/files/js/3rdParty/redactor/plugins/wutil.js @@ -1008,18 +1008,16 @@ RedactorPlugins.wutil = function() { continue; } - if ($child.children.length > 1 || $child.children[0].tagName === 'BR') { + if ($child.children.length > 1 || ($child.children.length === 1 && $child.children[0].tagName === 'BR')) { // element contains more than one children or it is just a
continue; } // head all the way down to the most inner node - $child = $child.children[0]; while ($child.children.length === 1) { $child = $child.children[0]; } - if ($child.childNodes.length === 0 && $child.tagName !== 'BR') { var $node = document.createTextNode('\u200b'); $child.appendChild($node);