Search Flex Components Free

Custom Search

December 20, 2007

Flex RichTextEditor sample

Flex RichTextEditor sample:

<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="
http://www.adobe.com/2006/mxml" backgroundAlpha="0">

<mx:Text id="myText" textAlign="center" width="500"> <mx:text>This is a simple demo for the RichTextEditor component. The RichTextEditor component is WYSIWYG component that supports the text formatting provided by Flash Player.</mx:text> </mx:Text>
<!-- load the sample text from a textfile. This text will be compiled with flex app and stored in 'html' variable. --> <mx:String id="html" source="content.html"/>
<mx:RichTextEditor id="rte" title="RichTextEditor" htmlText="{html}" showControlBar="{showControlBar.selected}"/> <mx:CheckBox id="showControlBar" label="Show Control Bar" selected="true"/>
<mx:Label text="RichEditor text attribute:" fontWeight="bold" fontSize="12"/> <mx:TextArea id="rteText" text="{rte.text}" width="500" height="150"/>
<mx:Label text="RichEditor htmlText attribute:" fontWeight="bold" fontSize="12"/> <mx:TextArea id="rteHTMLText" text="{rte.htmlText}" width="500" height="150"/>
</mx:Application>

Related Flex Tutorials