Ticket #5465: 5465.patch

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

     
    100100                                        // Do not enter this block if it's a header tag, or we are in
    101101                                        // a Shift+Enter (#77). Create a new block element instead
    102102                                        // (later in the code).
    103                                         if ( !forceMode && !headerTagRegex.test( previousBlock.getName() ) )
     103                                        if ( previousBlock.is( 'li' ) ||
     104                                                 !( forceMode || headerTagRegex.test( previousBlock.getName() ) ) )
    104105                                        {
    105106                                                // Otherwise, duplicate the previous block.
    106107                                                newBlock = previousBlock.clone();
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy