1 Reply Latest reply on Jan 23, 2008 9:47 AM by Rahil Kidwai

    Richtexteditor does not produce bullet html text with alignment tag

    swissjp
      The RichTextEditor does not not produce bullet html text with alignment tag.
      For example if you type your text, click on the bullet button and select right alignment button, the generated html text is:
      <TEXTFORMAT LEADING="2"><LI><FONT FACE="Verdana" SIZE="10" COLOR="#0B333C" LETTERSPACING="0" KERNING="0">My text.</FONT></LI></TEXTFORMAT>

      but the align="right" is missing.

      Is it a bug?

      Does a workaround exist?

      Thanks,

      JP


      NB: sample code to reproduce:
      <?xml version="1.0" encoding="utf-8"?>
      <mx:Application xmlns:mx=" http://www.adobe.com/2006/mxml" layout="absolute">

      <mx:Script>
      <![CDATA[
      private function showHTMLText():void{
      htmlText.text=rte.htmlText;
      }
      private function switchHtml():void{
      rte.htmlText=htmlText.text;
      }

      ]]>
      </mx:Script>

      <mx:RichTextEditor id="rte" x="0" y="10" textAlign="justify">
      </mx:RichTextEditor>
      <mx:Button x="10" y="341" label="Show html text" click="showHTMLText()"/>
      <mx:Button x="185" y="341" label="Switch html text" click="switchHtml()"/>
      <mx:TextArea x="363" y="10" width="266" height="300" id="htmlText"/>

      </mx:Application>