Is there a way to set the cusror position in GWT RichTextArea. There is method setCusrorPosition() to do so in TextArea, but not in RichTextArea.
Perhaps there is a native JavaScript (called from GWT) that could set the cursor position in the RichTextArea?
You are right RichTextArea is not providing the setSelectionRange method, but i have created one using the JSNI.
Below is the method,
For using above method write below code:
Note: Do remember to put the validation checks of “pos” and “length” you are passing in setSelectionRange() method.
This code had been tested in IE9, FF, Chrome.