Changeset 6267


Ignore:
Timestamp:
12/23/10 12:27:33 (3 years ago)
Author:
garry.yao
Message:

#6724: Padding node for nested list inside empty list item in IE7.

Location:
CKEditor/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • CKEditor/trunk/CHANGES.html

    r6266 r6267  
    5454                <li><a href="http://dev.ckeditor.com/ticket/6868">#6868</a> : Partial (invalid) list structure crashes editor load.</li> 
    5555                <li><a href="http://dev.ckeditor.com/ticket/6804">#6804</a> : Buggy behavior when editing &lt;legend&gt; inside &lt;fieldset&gt;.</li> 
     56                <li><a href="http://dev.ckeditor.com/ticket/6724">#6724</a> : [IE7] Nested list display bug in empty list item.</li> 
    5657        </ul> 
    5758        <h3> 
  • CKEditor/trunk/_source/plugins/list/plugin.js

    r6255 r6267  
    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; 
Note: See TracChangeset for help on using the changeset viewer.
© 2003 – 2012 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy