Ticket #6059: 6059.patch

File 6059.patch, 872 bytes (added by Sa'ar Zac Elias, 14 years ago)
  • _source/plugins/list/plugin.js

     
    218218                        CKEDITOR.dom.element.setMarker( database, itemNode, 'list_item_processed', true );
    219219                }
    220220
    221                 var fakeParent = groupObj.root.getDocument().createElement( this.type );
     221                var root = groupObj.root,
     222                        fakeParent = root.getDocument().createElement( this.type );
     223                // Copy all attributes, except from 'start' and 'type'.
     224                root.copyAttributes( fakeParent, { start : 1, type : 1 } );
     225                // The list-style-type property should be ignored.
     226                fakeParent.removeStyle( 'list-style-type' );
     227
    222228                for ( i = 0 ; i < selectedListItems.length ; i++ )
    223229                {
    224230                        var listIndex = selectedListItems[i].getCustomData( 'listarray_index' );
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy