From 67ae95ebd2565887ac41622b6e61c2cfb8c1eede Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Tue, 11 Mar 2014 13:43:01 +0100 Subject: [PATCH] Proper fix, the

seems no longer be necessary at all --- .../files/js/3rdParty/ckeditor/plugins/wbbcode/plugin.js | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) 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 cd0501ed48..8f8fe769f8 100644 --- a/wcfsetup/install/files/js/3rdParty/ckeditor/plugins/wbbcode/plugin.js +++ b/wcfsetup/install/files/js/3rdParty/ckeditor/plugins/wbbcode/plugin.js @@ -78,12 +78,6 @@ if ($.browser.mozilla) { fixFirefox(); - - // fix empty

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

') { - $div.children('p').remove(); - } } }); @@ -213,7 +207,7 @@ * Converts bbcodes to html. */ var toHtml = function(data, fixForBody) { - if ($.trim(data) === "") return "

"; + //if ($.trim(data) === "") return "

"; // remove 0x200B (unicode zero width space) data = removeCrap(data); -- 2.20.1