Filter Criteria

Select Your Category Select a component

RichTextEditor



<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" backgroundGradientAlphas="[1.0, 1.0]" backgroundGradientColors="[#8E4343, #8E4343]">
                 <mx:Script>
        <![CDATA[
            private var richText:String = "Enter text into the <b>RichTextEditor control</b>, then click a <b><font color='#0050AA'>button</font></b> to display your text as <i>plain text</i>, or as <i>HTML-formatted</i> text.";
        ]]>
    </mx:Script>
    <mx:Style>
        .white{
            color: #ffffff;
            fontWeight: bold;
        }
    </mx:Style>
   
    <mx:RichTextEditor titleStyleName="white" id="rte" title="RichTextEditor" width="70%" height="242"
        borderAlpha="0.15" creationComplete="rte.htmlText=richText;"   x="123.5" y="10"/>

    <mx:TextArea id="rteText" width="70%" height="50"  x="123.5" y="260"/>

    <mx:HBox x="258" y="318">
        <mx:Button color="black" label="Show Plain Text" click="rteText.text=rte.text;"/>
        <mx:Button color="black" label="Show HTML Markup" click="rteText.text=rte.htmlText;"/>
    </mx:HBox>
</mx:Application>



No comments:

Post a Comment