Changeset 208

Show
Ignore:
Timestamp:
2007-03-14 13:15:00 (21 months ago)
Author:
fredck
Message:

Fixed #77 : If ShiftEnterMode is set to a block tag (p or div), the desired block creation in now enforced, instead of copying the current block.

Location:
FCKeditor/trunk
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • FCKeditor/trunk/editor/_source/classes/fckenterkey.js

    r207 r208  
    351351                                        else 
    352352                                        { 
    353                                                 // If is a header tag, create a new block element. 
    354                                                 if ( (/^H[1-6]$/).test( sStartBlockTag ) ) 
     353                                                // If is a header tag, or we are in a Shift+Enter (#77), 
     354                                                // create a new block element. 
     355                                                if ( (/^H[1-6]$/).test( sStartBlockTag ) || this._HasShift ) 
    355356                                                        eNewBlock = this.Window.document.createElement( blockTag ) ; 
    356357                                                // Otherwise, duplicate the current block. 
  • FCKeditor/trunk/_whatsnew.html

    r207 r208  
    108108                <li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/213">#213</a>] Styles 
    109109                        are now preserved when hitting enter at the end of a paragraph.</li> 
     110                <li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/77">#77</a>] If ShiftEnterMode 
     111                        is set to a block tag (p or div), the desired block creation in now enforced, instead 
     112                        of copying the current block (which is still the behavior of the simple enter).</li> 
    110113        </ul> 
    111114        <h3>