Ticket #7074: 7074.patch

File 7074.patch, 960 bytes (added by Garry Yao, 9 years ago)
  • _source/plugins/styles/plugin.js

     
    519519                                                        // if this is the last node in its parent, we must also
    520520                                                        // check if the parent itself can be added completelly
    521521                                                        // to the range, otherwise apply the style immediately.
    522                                                         while ( applyStyle = !includedNode.getNext( notBookmark )
     522                                                        while ( ( applyStyle = !includedNode.getNext( notBookmark ) )
    523523                                                                && ( parentNode = includedNode.getParent(), dtd[ parentNode.getName() ] )
    524524                                                                && ( parentNode.getPosition( firstNode ) | CKEDITOR.POSITION_FOLLOWING | CKEDITOR.POSITION_IDENTICAL | CKEDITOR.POSITION_IS_CONTAINED ) == ( CKEDITOR.POSITION_FOLLOWING + CKEDITOR.POSITION_IDENTICAL + CKEDITOR.POSITION_IS_CONTAINED )
    525525                                                                && ( !def.childRule || def.childRule( parentNode ) ) )
© 2003 – 2019 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy