Clicking Enter key to go to new line retains Heading tags (H1, H2..H4) in CF Richtext. | Community
Skip to main content
Bhuwan_B
New Participant
March 2, 2023
Solved

Clicking Enter key to go to new line retains Heading tags (H1, H2..H4) in CF Richtext.

  • March 2, 2023
  • 2 replies
  • 691 views

Clicking Enter key to go to a new line retains Heading Tags in Content Fragment Richtext. Is there a way to have a paragraph tag as soon as we click enter to go to a new line (similar to Microsoft word)?

Note: Shift+Enter breaks line but retains formatting (AEM 6.5.14.0)

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 arunpatidar

Hi @bhuwan_b 
I think, the behaviour is same for component RTE as well.

2 replies

Manu_Mathew_
New Participant
March 3, 2023

@bhuwan_b I think the only option is to use the paragraph format option on the right side of the RTE for changing it back to paragraph as it persists in its selection until changed manually.

Shift+Enter adds a <br/> tag instead of creating a new element.

 

 

arunpatidar
arunpatidarAccepted solution
New Participant
March 2, 2023

Hi @bhuwan_b 
I think, the behaviour is same for component RTE as well.

Arun Patidar