Expand my Community achievements bar.

SOLVED

rte tag p with a break line

Avatar

Level 4

Hi,

I removed the tag P that wraps the rte with the property: removeSingleParagraphContainer="{Boolean}true"

Now it works but if i use a carriage return the text will become

<p>X</p>

<p>Y</p>

How can i make the following result:

X<br>

Y

 

Thanks

1 Accepted Solution

Avatar

Correct answer by
Level 8

I believe if you use Shift + Enter you'll get a line break, rather than just Enter in which you'll get a paragraph.

View solution in original post

2 Replies

Avatar

Level 10

I guess you cannot.

Its the default behavior of RTE, how ever you could do following..

1. Customize RTE.js ( will be time consuming )

2. Write a small js code which will remove p tags from 

<p>X</p>

<p>Y</p>

Avatar

Correct answer by
Level 8

I believe if you use Shift + Enter you'll get a line break, rather than just Enter in which you'll get a paragraph.