Ticket #3151: 3151_2.patch

File 3151_2.patch, 677 bytes (added by Martin Kou, 16 years ago)
  • _source/plugins/list/plugin.js

     
    124124                                                        currentListItem.getLast().remove();
    125125                                                currentListItem.appendBogus();
    126126                                        }
    127 
    128                                         if ( currentListItem.getName() == paragraphName && currentListItem.$.firstChild )
     127                                       
     128                                        if ( currentListItem.type == CKEDITOR.NODE_ELEMENT &&
     129                                                        currentListItem.getName() == paragraphName &&
     130                                                        currentListItem.$.firstChild )
    129131                                        {
    130132                                                currentListItem.trim();
    131133                                                var firstChild = currentListItem.getFirst();
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy