Ticket #3046: 3046_2.patch

File 3046_2.patch, 1001 bytes (added by Martin Kou, 15 years ago)
  • _source/plugins/list/plugin.js

     
    122122                                                                && currentListItem.getLast().type == CKEDITOR.NODE_ELEMENT
    123123                                                                && currentListItem.getLast().getAttribute( 'type' ) == '_moz' )
    124124                                                        currentListItem.getLast().remove();
    125                                                 currentListItem.append( doc.createElement( 'br' ) );
     125                                                currentListItem.appendBogus();
    126126                                        }
    127127
    128128                                        if ( currentListItem.getName() == paragraphName && currentListItem.$.firstChild )
     
    139139
    140140                                        var currentListItemName = currentListItem.$.nodeName.toLowerCase();
    141141                                        if ( !CKEDITOR.env.ie && currentListItemName == 'div' || currentListItemName == 'p' )
    142                                                 currentListItem.append( doc.createElement( 'br' ) );
     142                                                currentListItem.appendBogus();
    143143                                        retval.append( currentListItem );
    144144                                        rootNode = null;
    145145                                        currentIndex++;
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy