Skip to main content
Mar 12, 2010 1:20 PM UTC
Question

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

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 is closed to new replies. Start a new post to keep the conversation going.

2 replies

Mar 12, 2010 1:24 PM UTC

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...

Translate
Inspiring
Mar 15, 2010 7:43 PM UTC

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

Translate