Re: How to maintain scroll position on postback?

  •  07-06-2007, 5:46 AM

    Re: How to maintain scroll position on postback?

    Hi Fred,
     
    You could use the javascript API to get the scroll position of the iFrame and save it in a hidden field. Use the CuteEditor_OnInitialized event to run a script to set the position back the the saved value.
     
    editor.GetDocument().body.scrollTop is the property you'd be after.
     
    You could probably do something similar for the cursor position through the editor.GetSelection() method.
     
    Ady
View Complete Thread