From 305657e4b841f9c306e418e0abde3baecbcf1588 Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Tue, 11 Mar 2014 13:15:35 +0100 Subject: [PATCH] CKEditor adds an empty

which breaks line breaks in Firefox --- .../files/js/3rdParty/ckeditor/plugins/wbbcode/plugin.js | 9 +++++++++ 1 file changed, 9 insertions(+) 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); }); /** -- 2.20.1