Ticket #1522: 1522_2.patch

File 1522_2.patch, 2.6 KB (added by Frederico Caldeira Knabben, 16 years ago)
  • _whatsnew.html

     
    4545        <ul>
    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>
    5052                <a href="_whatsnew_history.html">See previous versions history</a>
  • editor/_source/classes/fckdomrange_ie.js

     
    113113        {
    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).
    119119                // It is also needed when placing the selection right after an inline
     
    143143        {
    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                       
    149149                        oIERange.select() ;
  • editor/_source/classes/fckenterkey.js

     
    414414                // If we have both the previous and next blocks, it means that the
    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
    420420                        // We'll need to append a placeholder or the list item wouldn't be editable. (Bug #1420)
     
    487487                        if ( FCKBrowserInfo.IsIE )
    488488                        {
    489489                                // Move the selection to the new block.
    490                                 oRange.MoveToNodeContents( eNewBlock ) ;
     490                                oRange.MoveToElementEditStart( eNewBlock ) ;
    491491                                oRange.Select() ;
    492492                        }
    493493
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy