Changeset 184

Show
Ignore:
Timestamp:
2007-03-02 18:59:20 (21 months ago)
Author:
fredck
Message:

Fixed #112 : The enter key now behaves correctly on lists with Firefox, when EnterMode=br.

Location:
FCKeditor/trunk
Files:
2 modified

Legend:

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

    r132 r184  
    273273} 
    274274 
    275 FCKEnterKey.prototype._ExecuteEnterBlock = function( blockTag ) 
     275FCKEnterKey.prototype._ExecuteEnterBlock = function( blockTag, range ) 
    276276{ 
    277277        // Get the current selection. 
    278         var oRange = new FCKDomRange( this.Window ) ; 
    279         oRange.MoveToSelection() ; 
     278        var oRange = range || new FCKDomRange( this.Window ) ; 
     279         
     280        // If we don't have a range, move it to the selection. 
     281        if ( !range ) 
     282                oRange.MoveToSelection() ; 
    280283 
    281284        // The selection boundaries must be in the same "block limit" element. 
     
    437440 
    438441                if ( !bHasShift && sStartBlockTag == 'LI' ) 
    439                         return this._ExecuteEnterBlock( null ) ; 
     442                        return this._ExecuteEnterBlock( null, oRange ) ; 
    440443 
    441444                // If we are at the end of a header block. 
  • FCKeditor/trunk/_whatsnew.html

    r175 r184  
    9191                        it was not possible to paste if "Allow paste operation via script" was disabled 
    9292                        in the browser security settings.</li> 
     93                <li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/112">#112</a>] The enter 
     94                        key now behaves correctly on lists with Firefox, when the EnterMode is set to 'br'.</li> 
    9395        </ul> 
    9496        <h3>