Om
    I am an old fashioned hacker, :)  so did i undeeratsnd you suggestion? i 
tried this with out any lic

var linkWrapper:LinkElement = new LinkElement();
linkWrapper.addEventListener(FlowElementMouseEvent.MOUSE_UP, 
clickActionHandle(model.clip));
var sentence:SpanElement = new SpanElement();

var ss:String = " Lorem ... diam.
 Morbi ... diam.
 Morbi ... vitae";

sentence.text = ss;


linkWrapper.addChild(sentence);
paragraphArea.addChild(linkWrapper);


i just end up with the .&#13  in the textArea

<s:TextArea id="ta" minHeight="0"  width="100%" editable="false"  >
                        <s:p id="paragraphArea" paragraphSpaceBefore="0">
                        </s:p>
</s:TextArea>




________________________________________
From: [email protected] [[email protected]] on behalf of OmPrakash Muppirala 
[[email protected]]
Sent: Thursday, April 03, 2014 6:51 AM
To: [email protected]
Subject: Re: <BR> in TextArea

According to the docs [1] the breakelement gets converted into newline
character and hence does not appear in TextFlow markup.

As a hack, you can try inserting &#13; where you want a <br>
Again, if you export the markup, the &#13; will get replaced by a newline
character.  But at least your display would look like how you want.

Thanks,
Om

[1] http://blogs.adobe.com/tlf/category/tlf

On Wed, Apr 2, 2014 at 1:50 PM, Scott Matheson <[email protected]>wrote:

> Hi
>    I am trying to build a Paragraph from sentences,
>
> this builds the Paragraph (from am XML file and itemRender)
>
> the build function looks like
>
>
> var linkWrapper:LinkElement = new LinkElement();
>
> var sentence:SpanElement = new SpanElement();
>
> sentence.styleName = 'linkStyle';
>
> sentence.textDecoration = TextDecoration.NONE;
>
> sentence.text = model.text + " ";
>
> linkWrapper.addChild(sentence);
>
> paragraphArea.addChild(linkWrapper);
>
>
>
> Layout
>
>
>
> <s:TextArea id="ta" minHeight="0"  width="100%" editable="false"
>
> <s:p id="paragraphArea" paragraphSpaceBefore="0">
>
> </s:p>
>
> </s:TextArea>
>
>
>
> I get
>
>
> sentence1
>
> sentence2
>
> sentence3
>
>
>
> my problem is how to i add a <br> in to the Paragraph and end up with
>
>
> sentence1
>
>
> sentence2
>
>
> sentence3
>
>
>
> it would be good if the  input text  model.text  could be
> "sentence1<br>sentence2<br>sentence3"
>
>
>
>
>
> ________________________________
>
> Disclaimer: This electronic mail and any attachments are confidential and
> may be privileged. If you are not the intended recipient, please notify the
> sender immediately by replying to this email, and destroy all copies of
> this email and any attachments. Thank you.
>

________________________________

Disclaimer: This electronic mail and any attachments are confidential and may 
be privileged. If you are not the intended recipient, please notify the sender 
immediately by replying to this email, and destroy all copies of this email and 
any attachments. Thank you.

Reply via email to