Ticket #4197: 4197.patch

File 4197.patch, 618 bytes (added by Minh Nguyen, 14 years ago)

With Safari and Chorme the 'elementPath' allways miss 'lastElement' object

  • _source/plugins/stylescombo/plugin.js

     
    166166
    167167                                                        if ( style.checkActive( elementPath ) )
    168168                                                                this.mark( name );
    169                                                         else if ( type == CKEDITOR.STYLE_OBJECT && !style.checkApplicable( elementPath ) )
     169                                                        else if ( type == CKEDITOR.STYLE_OBJECT && elementPath.lastElement && !style.checkApplicable( elementPath ) )
    170170                                                        {
    171171                                                                this.hideItem( name );
    172172                                                                counter[ type ]--;
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy