Compare the text and html text in RichTextEditor
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute"> <mx:Canvas creationComplete="addFonts()"> <mx:Script> import mx.collections.ArrayCollection; private function addFonts():void{ var arr:Array = Font.enumerateFonts(true); richText.fontFamilyCombo.labelField = 'fontName'; richText.fontFamilyCombo.dataProvider = Font.enumerateFonts(true); } </mx:Script> <mx:RichTextEditor id="richText" width="400" height="400" change="trace(richText.htmlText+' '+richText.text)"/> </mx:Canvas> </mx:Application>