Is there a way I can save and restore the cursor position?

  •  04-02-2009, 5:24 PM

    Is there a way I can save and restore the cursor position?

    I'd like to be able to read the HTML content into a buffer, modify the HTML, then put it back in the editor AND have the cursor at the same place, or as close as possible to where it was before the HTML changes were made. My problem is when I use the setHTML() method it always places the cursor at the end of the editor content. How can I put the cursor back where it was before the setHTML() method is executed?
View Complete Thread