4 Replies Latest reply on Dec 1, 2009 8:58 AM by mewk

    TestConverter eats caps (for breakfast)

    mewk Level 3

      In the following code the TextConverter.importToFlow() loses the caps in "http://www.moothink.com/MOOK"

       

      <?xml version="1.0" encoding="utf-8"?>
      <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
               xmlns:s="library://ns.adobe.com/flex/spark"
               xmlns:mx="library://ns.adobe.com/flex/halo">
        <s:layout><s:VerticalLayout gap="20" paddingTop="40" paddingLeft="40"/></s:layout>
        <fx:Script>
          <![CDATA[
            import flashx.textLayout.conversion.TextConverter;
            import spark.utils.TextFlowUtil;
      
            [Bindable] private var myString:String = "<a href='http://www.moothink.com/MOOK/'>click me</a>";
          ]]>
        </fx:Script>
      
        <s:RichEditableText id="myRET" text="{myString}"/>
        <s:RichEditableText id="myRET2" textFlow="{TextFlowUtil.importFromString(myString)}"
                  editable="false" selectable="false"/>
        <s:RichEditableText id="myRET3" textFlow="{TextConverter.importToFlow(myString, TextConverter.TEXT_FIELD_HTML_FORMAT)}"
                  editable="false" selectable="false"/>
      </s:Application>
      

       

      Is this a bug or am I missing some setting??

       

      Also any comments on the difference between TextFlowUtil vs. TextCoverter, i.e. links opening in new window vs. same window, etc. Too lazy to do any digging right now (sleep calls...) Thanks,

       

      - e