Ticket #7070: 7070_2.patch

File 7070_2.patch, 784 bytes (added by Sa'ar Zac Elias, 13 years ago)
  • _source/plugins/styles/plugin.js

     
    627627                                        // We should try to normalize with IE too in some way, somewhere.
    628628                                        if ( !CKEDITOR.env.ie )
    629629                                                styleNode.$.normalize();
     630
     631                                        // We should remove the bogus from the new element, unless it is in the last node in the page
     632                                        if ( !styleRange.startContainer.equals( document.getBody().getLast( notBookmark ) ) )
     633                                        {
     634                                                var bogus = styleNode.getBogus();
     635                                                bogus && bogus.remove();
     636                                        }
    630637                                }
    631638                                // Style already inherit from parents, left just to clear up any internal overrides. (#5931)
    632639                                else
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy