How to setcursor position in GWT RichTextArea
问题 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? 回答1: You are right RichTextArea is not providing the setSelectionRange method, but i have created one using the JSNI. Below is the method, public native void setSelectionRange(Element elem, int pos, int length) /*-{ try { var selection =