Skip to main content
March 12, 2010
Question

"<p/>" and "<br/>"

  • March 12, 2010
  • 1 reply
  • 390 views

Hello to everyone,

I am close to a deadline now so i have to ask..

In tlf the return key creates a markup as:

<p><span></span></p>        for new lines. So ever line has that start...

how can i be able to force player to create a mark up as:

<p> <span></span> top first line

            <span></span> new line                (adding no new p tag )

             <span></span> second new line   (adding no new p tag )

</p>

This topic has been closed for replies.

1 reply

March 12, 2010

And also it will be usefull if:

<p> <span>  top first line

            new line                (adding no new p tag or span tag)       

            second new line    (adding no new p tag or span tag)  

       </span>

</p>

Thank you community...

Adobe Employee
March 15, 2010

Converting </p><p> to <br/> will give you different results if you reimport that TLF markup.

If you want the enter key to insert line breaks instead of paragraphs then I'd suggset overriding keyDownHandler and trapping Keyboard.ENTER.  Don't let it go the parent and instead call editManager.insertText("\n");  The resulting TextFlow won't have paragraphs in it and will have <br> elements.

Hope that helps,

Richard