Ticket #7581: 7581.patch

File 7581.patch, 1.0 KB (added by Garry Yao, 13 years ago)
  • _source/plugins/enterkey/plugin.js

     
    129129                                        {
    130130                                                // Otherwise, duplicate the previous block.
    131131                                                newBlock = previousBlock.clone();
    132                                                 // Value attribute of list item should not be duplicated (#7330).
    133                                                 newBlock.is( 'li' ) && newBlock.removeAttribute( 'value' );
    134132                                        }
    135133                                }
    136134                                else if ( nextBlock )
     
    180178                                if ( !newBlock.getParent() )
    181179                                        range.insertNode( newBlock );
    182180
     181                                // list item start number should not be duplicated (#7330), but we need
     182                                // to remove the attribute after it's onto the DOM tree because of old IEs (#7581).
     183                                newBlock.is( 'li' ) && newBlock.removeAttribute( 'value' );
     184
    183185                                // This is tricky, but to make the new block visible correctly
    184186                                // we must select it.
    185187                                // The previousBlock check has been included because it may be
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy