Usable properties of RichTextEditor Control in flex.
RichTextEditor Control has many properties as it has many editable options init.
If u wanted to hide the different buttons at the controlbar use the property showControlBar and set it as false.It will hide the controlbar which will also hide the buttons on it.
And what if i want to hide a particular button or control in RTE.Then there are many properties for that for each one.
linkTextInput -> for link bar on control bar.
alignButtons ->for alignment buttons.
boldButton ->for bold button
colorPicker ->for color picker
italicButton ->for italic button
underlineButton ->for underline button
fontFamilyCombo ->for font family box.
fontSizeCombo ->for font size box.
bulletButton ->for bullet button.
_VRule1 ->for v rule 1 button.
_VRule2 ->for v rule 2 button.
Code Example:
private function init():void
{
rte.linkTextInput.visible=false;
rte.alignButtons.visible=false;
rte.boldButton.visible=false;
rte.colorPicker.visible=false;
rte.italicButton.visible=false;
rte.underlineButton.visible=false;
rte.fontFamilyCombo.visible=false;
rte.fontSizeCombo.visible=false;
rte.bulletButton.visible=false;
rte._VRule1.visible=false;
rte._VRule2.visible=false;
rte.showControlBar=false;
}
<mx:RichTextEditor x=”315.5″ y=”40″ id=”rte”> </mx:RichTextEditor>
This shows the difference .. !
leave any comment for queries..

January 21, 2008 at 7:17 am
Dear Kumar,
Really it came to usefull for me. Thanx
Regards
Dibya Rajan Patnaik
January 21, 2008 at 7:23 am
MENTION NOT!
actually i love to share my knowledge.
regards
kumar gandhi
May 15, 2008 at 11:27 am
Thanks for this, quick question -
How do I set the initial font size when I load the richEdit box ?
I can set the selectedIndex value for the fontSizeCombo (i.e. so it displays 14 when loaded) , however text then entered is still the default size of 8.
any ideas? It seems the change event of the fontSizeCombo is what causes the change, not just setting the value.
May 15, 2008 at 1:25 pm
Hi,
See the code for RichTextEditor there may be some properties for that ,as of now i didn’t come accross that and i will find out soon and comment here.
regards,
kumar.