Ticket #6724: 6724.patch

File 6724.patch, 859 bytes (added by Garry Yao, 13 years ago)
  • _source/plugins/list/plugin.js

     
    103103                                else if ( item.indent == Math.max( indentLevel, 0 ) + 1 )
    104104                                {
    105105                                        var listData = CKEDITOR.plugins.list.arrayToList( listArray, null, currentIndex, paragraphMode );
     106
     107                                        // If the next block is an <li> with another list tree as the first
     108                                        // child, we'll need to append a filler (<br>/NBSP) or the list item
     109                                        // wouldn't be editable. (#6724)
     110                                        if ( !currentListItem.getChildCount() && CKEDITOR.env.ie && !( doc.$.documentMode > 7 ))
     111                                                currentListItem.append( doc.createText( '\xa0' ) );
    106112                                        currentListItem.append( listData.listNode );
    107113                                        currentIndex = listData.nextIndex;
    108114                                }
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy