Usable properties of RichTextEditor Control in flex.
January 19, 2008RichTextEditor 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..

Posted by kumargandhi