Ticket #3095: 3095.patch

File 3095.patch, 1.5 KB (added by Martin Kou, 15 years ago)
  • _source/plugins/list/plugin.js

     
    115115
    116116                                        for ( var i = 0 ; i < item.contents.length ; i++ )
    117117                                                currentListItem.append( item.contents[i].clone( true, true ) );
    118 
     118                                       
    119119                                        if ( currentListItem.type == CKEDITOR.NODE_DOCUMENT_FRAGMENT )
    120120                                        {
    121121                                                if ( currentListItem.getLast()
     
    138138                                        }
    139139
    140140                                        var currentListItemName = currentListItem.$.nodeName.toLowerCase();
    141                                         if ( !CKEDITOR.env.ie && currentListItemName == 'div' || currentListItemName == 'p' )
     141                                        if ( !CKEDITOR.env.ie && ( currentListItemName == 'div' || currentListItemName == 'p' ) )
    142142                                                currentListItem.appendBogus();
    143143                                        retval.append( currentListItem );
    144144                                        rootNode = null;
  • _source/plugins/indent/plugin.js

     
    117117                // possible about the surrounding lists, we need to feed it the further
    118118                // ancestor node that is still a list.
    119119                var listParents = listNode.getParents();
    120                 for ( var i = listParents.length - 1 ; i >= 0 ; i-- )
     120                for ( var i = 0 ; i < listParents.length ; i++ )
    121121                {
    122122                        if ( listParents[i].getName && listNodeNames[ listParents[i].getName() ] )
    123123                        {
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy