rte tag p with a break line | Community
Skip to main content
New Participant
January 20, 2016
Solved

rte tag p with a break line

  • January 20, 2016
  • 2 replies
  • 1666 views

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.
Best answer by leeasling

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

leeaslingAccepted solution
New Participant
January 21, 2016

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

edubey
New Participant
January 20, 2016

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>