Oh I have a real need for this. I want certain words to be re-checked against a dictionary when they are edited by the user. This would mean knowing which word is currently being edited and which character is currently being typed or deleted, so for this I would need to know the cursor position (corresponding to the charAt position in the getText() String). Also, to set the colour of that word when the cursor is moved away from it (also needing the cursor position).
On Apr 23, 7:13 pm, kozura <[email protected]> wrote: > Vote for it...http://code.google.com/p/google-web-toolkit/issues/ > detail?id=1127 > > I've proposed an implementation in that issue, which gives the true > cursor element position in the rich text document. It could easily be > augmented to include the simpler position relative to plain text, > although I'm not sure the use case where this is particularly useful? > > On Apr 23, 10:34 am, Navigateur <[email protected]> wrote: > > > getCursorPos() should simply return the cursor position relative to > > the actual text on the screen (result of getText()) and not its HTML. > > > -- > > 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 > > athttp://groups.google.com/group/google-web-toolkit?hl=en. > > -- > 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 > athttp://groups.google.com/group/google-web-toolkit?hl=en. -- 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.
