Ticket #1522: 1522_2.patch
File 1522_2.patch, 2.6 KB (added by , 16 years ago) |
---|
-
_whatsnew.html
45 45 <ul> 46 46 <li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/1643">#1643</a>] Resolved 47 47 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> 48 50 </ul> 49 51 <p> 50 52 <a href="_whatsnew_history.html">See previous versions history</a> -
editor/_source/classes/fckdomrange_ie.js
113 113 { 114 114 bIsStartMakerAlone = ( forceExpand || !eStartMarker.previousSibling || eStartMarker.previousSibling.nodeName.toLowerCase() == 'br' ) && !eStartMarker.nextSibing ; 115 115 116 // Append a temporary <span>& nbsp;</span> before the selection.116 // Append a temporary <span></span> before the selection. 117 117 // This is needed to avoid IE destroying selections inside empty 118 118 // inline elements, like <b></b> (#253). 119 119 // It is also needed when placing the selection right after an inline … … 143 143 { 144 144 if ( bIsStartMakerAlone ) 145 145 { 146 // Move the selection start to include the temporary & nbsp;.146 // Move the selection start to include the temporary . 147 147 oIERange.moveStart( 'character', -1 ) ; 148 148 149 149 oIERange.select() ; -
editor/_source/classes/fckenterkey.js
414 414 // If we have both the previous and next blocks, it means that the 415 415 // boundaries were on separated blocks, or none of them where on the 416 416 // block limits (start/end). 417 if ( ! oSplitInfo.WasStartOfBlock && !oSplitInfo.WasEndOfBlock )417 if ( !bIsStartOfBlock && !bIsEndOfBlock ) 418 418 { 419 419 // If the next block is an <li> with another list tree as the first child 420 420 // We'll need to append a placeholder or the list item wouldn't be editable. (Bug #1420) … … 487 487 if ( FCKBrowserInfo.IsIE ) 488 488 { 489 489 // Move the selection to the new block. 490 oRange.MoveTo NodeContents( eNewBlock ) ;490 oRange.MoveToElementEditStart( eNewBlock ) ; 491 491 oRange.Select() ; 492 492 } 493 493