On 5/12/06, Will Morgan <[EMAIL PROTECTED]> wrote:

>    Hey Manish - thanks. If you've done it before and you have a quick sample at hand could you post it?

Just use a string replace.

<?xml version="1.0"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
      xmlns="*">
      <mx:RichTextEditor id="rte" />
      <mx:Button click="bar()" />
      <mx:Script>
            <![CDATA[
            function bar()
            {
                  var s:String = rte.htmlText;
                  s = s.replace(/<FONT[^>]*>/g, "");
                  s = s.replace(/<\/FONT\>/g, "");
                  trace(s)
                  trace("---")
            }
            ]]>
      </mx:Script>
</mx:Application>


--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com




SPONSORED LINKS
Web site design development Computer software development Software design and development
Macromedia flex Software development best practice


YAHOO! GROUPS LINKS




Reply via email to