I have taken one RichTextEditor component, and there is one button to
fill background of RichTextEditor's textArea, using following code

<mx:RichTextEditor id="rte" x="218" y="10" title="Title"/>
<mx:Button x="218" y="318" label="Set Background" click="onRTE_Bg()"/>

private function onRTE_Bg():void{
     rte.textArea.setStyle("backgroundColor","#ff6600");
}

Just do following step
1. enter few text into editor
2. apply bold, italic, color, alignment and font size options to text
3. hit "Set Background" button, and see all the format which you have
applied to text will be removed

Can anyone help me how to solve this? 

Thanks



Reply via email to