From: Alexander Ebert Date: Tue, 11 Mar 2014 12:15:35 +0000 (+0100) Subject: CKEditor adds an empty

which breaks line breaks in Firefox X-Git-Tag: 2.0.4~23^2~4 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=305657e4b841f9c306e418e0abde3baecbcf1588;p=GitHub%2FWoltLab%2FWCF.git CKEditor adds an empty

which breaks line breaks in Firefox --- diff --git a/wcfsetup/install/files/js/3rdParty/ckeditor/plugins/wbbcode/plugin.js b/wcfsetup/install/files/js/3rdParty/ckeditor/plugins/wbbcode/plugin.js index f214a25874..47d03818bc 100644 --- a/wcfsetup/install/files/js/3rdParty/ckeditor/plugins/wbbcode/plugin.js +++ b/wcfsetup/install/files/js/3rdParty/ckeditor/plugins/wbbcode/plugin.js @@ -78,7 +78,16 @@ if ($.browser.mozilla) { fixFirefox(); + + // fix empty

breaking firefox + var $div = $(event.editor.container.$).find('.cke_wysiwyg_div'); + if ($div.html() == '

') { + $div.children('p').remove(); + } } + + window.dtdesign = event.editor; + console.debug(event.editor); }); /**