0 Replies Latest reply on Jul 1, 2008 12:36 AM by T-macjp

    add images to RichTextEditor in AIR

      hi all!
      I have add images to RichTextEditor in flex application,but when did the same thing in WindowedApplication,it did not work,anyone can help?thank you!

      <?xml version="1.0" encoding="utf-8"?>
      <mx:WindowedApplication xmlns:mx=" http://www.adobe.com/2006/mxml" layout="absolute">
      private function insertImg():void{
      rte.textArea.htmlText="<b>aaaa</b>"+"<img src=\"good.gif\"/>";

      <mx:RichTextEditor id="rte" width="100%" headerHeight="80%" creationComplete="insertImg()"/>