Changeset 5341


Ignore:
Timestamp:
04/06/10 19:40:02 (5 years ago)
Author:
garry.yao
Message:

#5465: Allow enterKey to create new list item even in force enter mode when pressing enter at the end of list item.

Location:
CKEditor/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • CKEditor/trunk/CHANGES.html

    r5339 r5341  
    124124                <li><a href="http://dev.fckeditor.net/ticket/5261">#5261</a> : Config option 'scayt_autoStartup' slow down editor loading.</li> 
    125125                <li><a href="http://dev.fckeditor.net/ticket/3846">#3846</a> : Google Chrome - No Img properties after inserting.</li> 
     126                <li><a href="http://dev.fckeditor.net/ticket/5465">#5465</a> : ShiftEnter=DIV doesn't respect list item when pressing enter at end of list item.</li> 
    126127                <li>Updated the following language files:<ul> 
    127128                        <li>Faroese;</li> 
  • CKEditor/trunk/_source/plugins/enterkey/plugin.js

    r5292 r5341  
    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. 
Note: See TracChangeset for help on using the changeset viewer.
© 2003 – 2012 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy