Thanks a lot, that's very helpful! Now I got the right coordinates. However, I still have a rendering problem. When I try to draw on the RichTextEditor's graphics (e.g. rte.graphics.drawRect(...) the rectangle appears behind the textarea. That kinda makes sense because I guess the textarea is always put on top of the RTE's graphics canvas.
But, if I do rte.textarea.graphics.drawRect(...) nothing appears. So, do you know how I can draw directly in the textarea? Thanks a lot! Julien --- In [email protected], "Daniel Freiman" <[EMAIL PROTECTED]> wrote: > > You'd have to extend the RichTextEditor and use the methods of its > TextField. You'd have to get the start and end index of the string you're > searching for, find the physical position of the String using > TextField.getCharBoundries(), and then use the graphics object of the > RichTextEditor to draw the wavy line. > > Dan Freiman > nondocs <http://nondocs.blogspot.com> > > On 5/23/07, Julien Phalip <[EMAIL PROTECTED]> wrote: > > > > Hey! > > > > Thanks for you reply, but that doens't exactly work the way I'd like. > > > > How could I get a wavy line under a word in the RichTextEditor, like > > in MS Word when a word is mispelled. > > > > Thanks! > > > > --- In [email protected] <flexcoders%40yahoogroups.com>, Tom > > Chiverton <tom.chiverton@> > > > > wrote: > > > > > > On Wednesday 23 May 2007, Julien Phalip wrote: > > > > Would you know how to highlight a word in a RichTextEditor? > > > > > > RTE has a htmlText property that understands simple HTML, so > > something like > > > the following: > > > rte.htmlText=rte.htmlText.replace(someString,"<font > > > color="red"><u>"+someString+"</u></font>") > > > is possible. > > > > > > -- > > > Tom Chiverton > > > Helping to ambassadorially seize strategic markets > > > on: http://thefalken.livejournal.com > > > > > > **************************************************** > > > > > > This email is sent for and on behalf of Halliwells LLP. > > > > > > Halliwells LLP is a limited liability partnership registered in > > England and Wales under registered number OC307980 whose registered > > office address is at St James's Court Brown Street Manchester M2 2JF. > > A list of members is available for inspection at the registered > > office. Any reference to a partner in relation to Halliwells LLP means > > a member of Halliwells LLP. Regulated by the Law Society. > > > > > > CONFIDENTIALITY > > > > > > This email is intended only for the use of the addressee named above > > and may be confidential or legally privileged. If you are not the > > addressee you must not read it and must not use any information > > contained in nor copy it nor inform any person other than Halliwells > > LLP or the addressee of its existence or contents. If you have > > received this email in error please delete it and notify Halliwells > > LLP IT Department on 0870 365 8008. > > > > > > For more information about Halliwells LLP visit www.halliwells.com. > > > > > > > > > >

