Ticket #4476: 4476.patch

File 4476.patch, 997 bytes (added by Garry Yao, 14 years ago)
  • _source/plugins/indent/plugin.js

     
    187187                                           followingList.is &&
    188188                                           followingList.getName() in listNodeNames )
    189189                                {
     190                                        // IE requires a filler NBSP for nested list inside empty list item,
     191                                        // otherwise the list item will be inaccessiable. (#4476)
     192                                        if ( CKEDITOR.env.ie && !li.getFirst( function( node ){ return isNotWhitespaces( node ) && isNotBookmark( node ); } ) )
     193                                                li.append( range.document.createText( '\u00a0' ) );
     194
    190195                                        li.append( followingList );
    191196                                }
    192197
     
    264269                this.startDisabled = name == 'outdent';
    265270        }
    266271
     272        var isNotWhitespaces = CKEDITOR.dom.walker.whitespaces( true ),
     273                        isNotBookmark = CKEDITOR.dom.walker.bookmark( false, true );
     274
    267275        indentCommand.prototype = {
    268276                exec : function( editor )
    269277                {
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy