Ticket #5465: 5465_2.patch

File 5465_2.patch, 572 bytes (added by Garry Yao, 14 years ago)
  • _source/plugins/enterkey/plugin.js

     
    111111
    112112                                if ( !newBlock )
    113113                                        newBlock = doc.createElement( blockTag );
    114                                 else if ( forceMode )
     114                                // Force the enter block unless we're talking of a list item.
     115                                else if ( forceMode && !newBlock.is( 'li' ) )
    115116                                        newBlock.renameNode( blockTag );
    116117
    117118                                // Recreate the inline elements tree, which was available
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy