Changeset 2144
- Timestamp:
- 2008-06-26 11:42:50 (7 months ago)
- Location:
- FCKeditor/trunk
- Files:
-
- 3 modified
-
editor/_source/commandclasses/fckshowblocks.js (modified) (1 diff)
-
editor/_source/internals/fckdomtools.js (modified) (1 diff)
-
_whatsnew.html (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
FCKeditor/trunk/editor/_source/commandclasses/fckshowblocks.js
r1565 r2144 45 45 body.className += ' FCK__ShowBlocks' ; 46 46 47 if ( FCKBrowserInfo.IsIE ) 48 { 49 try 50 { 51 FCK.EditorDocument.selection.createRange().select() ; 52 } 53 catch ( e ) 54 {} 55 } 56 else 57 { 58 var focus = FCK.EditorWindow.getSelection().focusNode ; 59 if ( focus.nodeType != 1 ) 60 focus = focus.parentNode ; 61 FCKDomTools.ScrollIntoView( focus, false ) ; 62 } 63 47 64 FCK.Events.FireEvent( 'OnSelectionChange' ) ; 48 65 } -
FCKeditor/trunk/editor/_source/internals/fckdomtools.js
r2096 r2144 1005 1005 // Scroll the window to the desired position, if not already visible. 1006 1006 var currentScroll = FCKTools.GetScrollPosition( window ).Y ; 1007 if ( offset > 0 && offset > currentScroll)1007 if ( offset > 0 && ( offset > currentScroll || offset < currentScroll - windowHeight ) ) 1008 1008 window.scrollTo( 0, offset ) ; 1009 1009 }, -
FCKeditor/trunk/_whatsnew.html
r2143 r2144 59 59 3, the entire page was scrolling when inserting block elements with the FCK.InsertElement 60 60 function, used by the Table and Horizontal Rule buttons.. </li> 61 <li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/2323">#2323</a>] Fixed the issue 62 where the show blocks command loses the current selection from the view area when editing 63 a long document.</li> 61 64 </ul> 62 65 <p>