On value commit in a RichTextEditor, display value by reference its id : RichTextEditor « Components « Flex






On value commit in a RichTextEditor, display value by reference its id

On value commit in a RichTextEditor, display value by reference its id
  

<?xml version="1.0" encoding="utf-8"?>
<mx:Application
    xmlns:s="library://ns.adobe.com/flex/spark" 
    xmlns:mx="http://www.adobe.com/2006/mxml">
    <mx:Script>
        import mx.controls.Alert; public function
        showMsg(msg:String):void { 
            Alert.show(msg); 
        }
    </mx:Script>
    <mx:Panel title="Profile" verticalCenter="0" horizontalCenter="0">


        <s:Label text="Enter your profile" fontWeight="bold" color="#ff0000" />
        <mx:RichTextEditor id="fullProfile" height="150" valueCommit="showMsg(fullProfile.text)" />

    </mx:Panel>
</mx:Application>

   
    
  








Related examples in the same category

1.Fade RichTextEditorFade RichTextEditor
2.Change style for textArea in RichTextEditorChange style for textArea in RichTextEditor
3.htmltext with cdata inside RichTextEditor
4.Use RichTextEditor to display HTML formatted stringUse RichTextEditor to display HTML formatted string
5.Get Number of characters selected from RichTextEditorGet Number of characters selected from RichTextEditor
6.Get font family for selected text in RichTextEditorGet font family for selected text in RichTextEditor
7.Get font size for selected text in RichTextEditorGet font size for selected text in RichTextEditor
8.Get color for selected text in RichTextEditorGet color for selected text in RichTextEditor
9.Replace text in RichTextEditor with TextRangeReplace text in RichTextEditor with TextRange
10.Creating a RichTextEditor control with Creating a RichTextEditor control with <mx:RichTextEditor>
11.Bind String to html Text property of RichTextEditorBind String to html Text property of RichTextEditor
12.RichTextEditor initialize eventRichTextEditor initialize event
13.creationComplete event for RichTextEditorcreationComplete event for RichTextEditor
14.Color picker for RichTextEditorColor picker for RichTextEditor
15.Remove the alignment buttons from a RichTextEditor controlRemove the alignment buttons from a RichTextEditor control
16.toolbar from RichTextEditortoolbar from RichTextEditor
17.Use the RichTextEditorUse the RichTextEditor
18.Set RichTextEditor to use system fontSet RichTextEditor to use system font
19.Compare the text and html text in RichTextEditorCompare the text and html text in RichTextEditor
20.Bind html text in RichTextEditor to TextAreaBind html text in RichTextEditor to TextArea
21.RichTextEditor CDATARichTextEditor CDATA
22.RichTextEditor ControlRichTextEditor Control
23.RichTextEditor Control With Formatted TextRichTextEditor Control With Formatted Text
24.RichTextEditor SubcontrolRichTextEditor Subcontrol
25.Remove Align Buttons from RichTextEditor's ToolBarRemove Align Buttons from RichTextEditor's ToolBar