Mega Code Archive

 
Categories / Flex / Components
 

Change style for textArea in RichTextEditor

<?xml version="1.0"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" width="700" height="400">     <mx:Script>         [Bindable]         public var htmlData:String="<textformat leading='2'><p align='center'><b><font size='20'>HTML Formatted Text</font></b></p></textformat>";       </mx:Script>     <mx:RichTextEditor id="rte1"                         backgroundColor="#ccffcc"                         width="605"                        title="Rich Text Editor"                         htmlText="{htmlData}"                        initialize="rte1.textArea.setStyle('backgroundColor', '0xeeffee')" /> </mx:Application>