Changeset 2145
- Timestamp:
- 2008-06-26 11:48:43 (7 months ago)
- Location:
- FCKeditor/trunk
- Files:
-
- 2 modified
-
editor/_source/commandclasses/fckfitwindow.js (modified) (2 diffs)
-
_whatsnew.html (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
FCKeditor/trunk/editor/_source/commandclasses/fckfitwindow.js
r2052 r2145 37 37 var eBodyStyle = eBody.style ; 38 38 var eParent ; 39 40 // Save the current selection and scroll position. 41 var oRange = new FCKDomRange( FCK.EditorWindow ) ; 42 oRange.MoveToSelection() ; 43 var oEditorScrollPos = FCKTools.GetScrollPosition( FCK.EditorWindow ) ; 39 44 40 45 // No original style properties known? Go fullscreen. … … 161 166 162 167 FCK.Focus() ; 168 169 // Restore the selection and scroll position of inside the document. 170 oRange.Select() ; 171 FCK.EditorWindow.scrollTo( oEditorScrollPos.X, oEditorScrollPos.Y ) ; 163 172 } 164 173 -
FCKeditor/trunk/_whatsnew.html
r2144 r2145 62 62 where the show blocks command loses the current selection from the view area when editing 63 63 a long document.</li> 64 <li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/2322">#2322</a>] Fixed the issue 65 where the fit window command loses the current selection and scroll position in the 66 editing area.</li> 64 67 </ul> 65 68 <p>