You should be able to do that with these methods from TextArea: http://google-web-toolkit.googlecode.com/svn/javadoc/1.5/com/google/gwt/user/client/ui/TextArea.html#getCursorPos() http://google-web-toolkit.googlecode.com/svn/javadoc/1.5/com/google/gwt/user/client/ui/TextBoxBase.html#setCursorPos(int) http://google-web-toolkit.googlecode.com/svn/javadoc/1.5/com/google/gwt/user/client/ui/TextBoxBase.html#setText(java.lang.String)
On Apr 14, 11:24 pm, ekaldany <[email protected]> wrote: > So it's pretty clear that this is achievable in a regular webpage with > a javascript function... but how do I insert text into a textarea at > cursor position in GWT? > > We have it functional in all browsers except IE... it adds like 3000 > character spaces and inserts the text in a random spot in the > textarea. > > To explain the greater functionality here, the user is filling out a > form, then inserting portions of it via links of section names into > the text area to create a customized note. > > Any help? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~----------~----~----~----~------~----~------~--~---
