Hi Mayank,

D is correct. The RTE extends Panel and is written in MXML.

 

Look at src\mx\controls\RichTextEditor.mxml in the SDK. You could put
the TextArea control inside of RichTextEditor.mxml in a Canvas. Then
after line 312 of RichTextEditor.mxml (in the commitProperties). You
could parse the entered text for html image tags and add an Image
component to the Canvas control that contains your TextArea. You will
need to think about how you want to position the Image components added.

 

Cheers,

 

Joel Carras

Cynergy Systems

 

From: [email protected] [mailto:[email protected]] On
Behalf Of Derrick Anderson
Sent: Thursday, December 18, 2008 3:24 PM
To: [email protected]
Subject: Re: [flexcoders] Rich text editor customization

 

the RTE is a Panel w/ TextArea written in MXML, so open up the source
and see how it functions.  Specifically, the setTextStyles and
getTextStyles functions- 

I have not customized it for images, but Image is a supported tag in the
htmlText property.

d.

On Wed, Dec 17, 2008 at 11:35 PM, Mayank Vora <[email protected]>
wrote:


Hi,

I wanted to know if there is a way to embed images using Rich Text
Editor. Has anyone tried customizing RTE to embed html images.

Regards,

Mayank

 

 

Reply via email to