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

    add images to RichTextEditor in AIR

    T-macjp
      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">
      <mx:Script>
      <![CDATA[
      private function insertImg():void{
      rte.textArea.htmlText="<b>aaaa</b>"+"<img src=\"good.gif\"/>";
      }
      ]]>
      </mx:Script>

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

      </mx:WindowedApplication>