Hi
A client has requested that in the editor the selection is maintained when you switch modes. I coulnd't find an example of this on the site but I noticed that I can grab the selection using OnClientSelectionChange, and I can detect the event BEFORE a mode change using OnClientModeChange. I just couldn't see how to perform a selection event AFTER the mode change in order to maintain the selection position.
I think that I'd have to find the string position of the html source of the selection in the html editing textarea, and use setSelectionRange() ( or IE hack / equivalent) to mark the selection area.
Is there a built-in method for doing this?
Tim
A client has requested that in the editor the selection is maintained when you switch modes. I coulnd't find an example of this on the site but I noticed that I can grab the selection using OnClientSelectionChange, and I can detect the event BEFORE a mode change using OnClientModeChange. I just couldn't see how to perform a selection event AFTER the mode change in order to maintain the selection position.
I think that I'd have to find the string position of the html source of the selection in the html editing textarea, and use setSelectionRange() ( or IE hack / equivalent) to mark the selection area.
Is there a built-in method for doing this?
Tim