0 Replies Latest reply on Oct 30, 2009 7:30 AM by RomanBuurdeiniy

    Multiple columns RichText. How to make indent for several lines?

    RomanBuurdeiniy

      Hi,

      I have the RichText control in my mxml file.

      <ns:RichText
              id="richText"
              color="#000000"
              width="400"
              height="100"

              columnWidth="150"
              fontFamily="Arial"
              horizontalCenter="0"
              verticalCenter="0"
              columnCount="2"
              textFlow="{TextConverter.getImporter(text, TextConverter.HTML_FORMAT)}">

      </ns:RichText>

       

      [Bindable]

      public var text : String = "<img src='exprert.jpg' width='30' height='30'/>text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text";

       

      In that case only the first line of the text flows my image. But I need first second and third lines flow it in this example.

      So I need to have something like this:

       

                 text text texte text texte txeflgjkdl

      <img> text text text text.......................

                 texte txet text tex text...............

      text text text tex tetx text................

      text text text tex tetx text................

      text text text tex tetx text................

       

      The actual result is:

       

      <img>text text text text text text

      text text text text......................

      text text text text.....................

      text text text text.....................

       

      Also it would be acceptable if I can set text intend not only for first line of the paragraph, but for the first second and third for instance and don't put img tag in the text, it would be event better

       

      Could someone help me?