Proper fix, the <p></p> seems no longer be necessary at all
authorAlexander Ebert <ebert@woltlab.com>
Tue, 11 Mar 2014 12:43:01 +0000 (13:43 +0100)
committerAlexander Ebert <ebert@woltlab.com>
Tue, 11 Mar 2014 12:43:01 +0000 (13:43 +0100)
wcfsetup/install/files/js/3rdParty/ckeditor/plugins/wbbcode/plugin.js

index cd0501ed4818d6291e8ea0d074ae0851c31e046b..8f8fe769f8a700fb554f7c14dfaaf0784728bfbc 100644 (file)
                
                if ($.browser.mozilla) {
                        fixFirefox();
-                       
-                       // fix empty <p></p> breaking firefox
-                       var $div = $(event.editor.container.$).find('.cke_wysiwyg_div');
-                       if ($div.html() == '<p></p>') {
-                               $div.children('p').remove();
-                       }
                }
        });
        
         * Converts bbcodes to html.
         */
        var toHtml = function(data, fixForBody) {
-               if ($.trim(data) === "") return "<p></p>";
+               //if ($.trim(data) === "") return "<p></p>";
                
                // remove 0x200B (unicode zero width space)
                data = removeCrap(data);