Skip to main content
Level 4
Jan 20, 2016 4:33 PM UTC
Solved

rte tag p with a break line

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

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
leeaslingAccepted solution
Level 8
Jan 21, 2016 1:59 PM UTC

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

2 replies

edubey
Level 10
Jan 20, 2016 4:38 PM UTC

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>

Translate
leeaslingAccepted solution
Level 8
Jan 21, 2016 1:59 PM UTC

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

Translate