Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    RichTextEditor

    Hi,

    Do you know how can you insert text in the cursor position in a RichTextEditor ? What I'm trying to accomplish is a SQL editor where the user can click on the name of a field in a table and it gets added to the text in the RichTextEditor.

    So far, I've seen the methods getValue() and setValue() in the Javadocs, but they are not useful to add something in the cursor position, just at the beginning or end of it. What I'm looking for is something like 'getCaretPosition()' in Swing or similar methods in other widget frameworks.

    Extra: also I can't see any method to wrap the text. I've tried with setOverflow() (just in case...) but it didn't work. Do you know if this is possible ?

    Thanks in advance,
    Juan
    Last edited by juan.medin; 8 Mar 2009, 05:24.
Working...
X