i was able to do it w/out subclassing like so:
private function handleMergeFieldClick(event:*):void
{
textArea.getTextField().replaceSelectedText('['[EMAIL PROTECTED]
+']');
}
works like a charm, except now I realize I would like some color applied to
the text that was inserted. is there a similar function like
replaceSelectedText but that will replace selected text with a TextRange
object?
thanks,
d.
On Fri, Apr 11, 2008 at 2:16 PM, Alex Harui <[EMAIL PROTECTED]> wrote:
> No method on TextArea, but you can subclass and get to the underlying
> TextField and call replaceSelectedText
>
>
> ------------------------------
>
> *From:* [email protected] [mailto:[EMAIL PROTECTED] *On
> Behalf Of *Derrick Anderson
> *Sent:* Friday, April 11, 2008 7:19 AM
> *To:* [email protected]
> *Subject:* [flexcoders] insert at cursor position in textarea
>
>
>
> hey does anybody know how to insert a string at the current cursor
> position in a textarea? i thought there was a method like
> textArea.insertTextAt() but i can't find anything like that.
>
> thanks,
> d.
>
>
>