Ticket #5931: 5931.patch

File 5931.patch, 902 bytes (added by Charlie, 14 years ago)

maybe?

  • plugin.js

     
    504504
    505505                                                if ( !styleNode.hasAttributes() )
    506506                                                {
    507                                                         styleNode = null;
     507                                                        // styleNode = null;
     508                                                        // Allow through these potentially empty tags, they will be added, then removed (#5931)
    508509                                                        break;
    509510                                                }
    510511                                        }
     
    536537                                        // We should try to normalize with IE too in some way, somewhere.
    537538                                        if ( !CKEDITOR.env.ie )
    538539                                                styleNode.$.normalize();
     540                                       
     541                                        // Since we may have allowed through now emtpy tags, remove them if they are such.
     542                                        // Thus we allow them to be merged back up to their parents (#5931)
     543                                        if ( !styleNode.hasAttributes() )
     544                                                                removeNoAttribsElement(styleNode);
    539545                                }
    540546
    541547                                // Style applied, let's release the range, so it gets
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy