Ticket #2531: 2531.patch
File 2531.patch, 1.7 KB (added by , 16 years ago) |
---|
-
_whatsnew.html
77 77 condition at registering the FCKeditorAPI object in multiple editor scenarios.</li> 78 78 <li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/2525">#2525</a>] Fixed JavaScript 79 79 error in Google Chrome when StartupShowBlocks is set to true.</li> 80 <li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/2531">#2531</a>] The ENTER 81 key will properly scroll to the cursor position when breaking long paragraphs.</li> 80 82 </ul> 81 83 <p> 82 84 <a href="_whatsnew_history.html">See previous versions history</a></p> -
editor/_source/classes/fckenterkey.js
536 536 } 537 537 538 538 if ( FCKBrowserInfo.IsGeckoLike ) 539 FCKDomTools.ScrollIntoView( eNextBlock || eNewBlock, false ) ; 540 539 { 540 if ( eNextBlock ) 541 { 542 // If we have split the block, adds a temporary span at the 543 // range position and scroll relatively to it. 544 var tmpNode = this.Window.document.createElement( 'span' ) ; 545 546 // We need some content for Safari. 547 tmpNode.innerHTML = ' '; 548 549 oRange.InsertNode( tmpNode ) ; 550 FCKDomTools.ScrollIntoView( tmpNode, false ) ; 551 oRange.DeleteContents() ; 552 } 553 else 554 { 555 // We may use the above scroll logic for the new block case 556 // too, but it gives some weird result with Opera. 557 FCKDomTools.ScrollIntoView( eNextBlock || eNewBlock, false ) ; 558 } 559 } 560 541 561 oRange.Select() ; 542 562 } 543 563