Changeset 1284

Show
Ignore:
Timestamp:
2008-01-11 11:28:22 (2 years ago)
Author:
fredck
Message:

Fixed #1522 : The ENTER key will not work properly for collapsed selections at the start of formatted paragraphs.

Location:
FCKeditor/trunk
Files:
3 modified

Legend:

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

    r1118 r1284  
    114114                bIsStartMakerAlone = ( forceExpand || !eStartMarker.previousSibling || eStartMarker.previousSibling.nodeName.toLowerCase() == 'br' ) && !eStartMarker.nextSibing ; 
    115115                 
    116                 // Append a temporary <span>&nbsp;</span> before the selection. 
     116                // Append a temporary <span>&#65279;</span> before the selection. 
    117117                // This is needed to avoid IE destroying selections inside empty 
    118118                // inline elements, like <b></b> (#253). 
     
    144144                if ( bIsStartMakerAlone ) 
    145145                { 
    146                         // Move the selection start to include the temporary &nbsp;. 
     146                        // Move the selection start to include the temporary &#65279;. 
    147147                        oIERange.moveStart( 'character', -1 ) ; 
    148148                         
  • FCKeditor/trunk/editor/_source/classes/fckenterkey.js

    r1282 r1284  
    415415                // boundaries were on separated blocks, or none of them where on the 
    416416                // block limits (start/end). 
    417                 if ( !oSplitInfo.WasStartOfBlock && !oSplitInfo.WasEndOfBlock ) 
     417                if ( !bIsStartOfBlock && !bIsEndOfBlock ) 
    418418                { 
    419419                        // If the next block is an <li> with another list tree as the first child 
     
    488488                        { 
    489489                                // Move the selection to the new block. 
    490                                 oRange.MoveToNodeContents( eNewBlock ) ; 
     490                                oRange.MoveToElementEditStart( eNewBlock ) ; 
    491491                                oRange.Select() ; 
    492492                        } 
  • FCKeditor/trunk/_whatsnew.html

    r1239 r1284  
    4646                <li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/1643">#1643</a>] Resolved 
    4747                        several "strict warning" messages in Firefox when running FCKeditor.</li> 
     48                <li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/1522">#1522</a>] The ENTER 
     49                        key will now work properly in IE with the cursor at the start of a formatted block.</li> 
    4850        </ul> 
    4951        <p>