Issue Bug Closed

#94628ck_editor transforms carriage returns to <p></p> in the Frontend

Peter Linzenkirchner 07/23/21, 20:43 updated 06/02/23, 14:32

Description

Since the last update to 9.5.28 the frontend rendering of the ck_editor is broken.

This ist the html in the text field of the ck_editor in the backend:

<p class="text-center">Kirchner-Seminare, ...<br />
Telefon ...</p>

<p class="text-center">E-Mail an Seminarorganisation<br />
<a class="mail" href="mailto:..." title="E-Mail senden">info@domain.de</a></p>

<p class="text-center">&nbsp;</p>

<p class="text-center"><a class="download" href="t3://file?uid=543" title="Initiates file download">Anfahrtskarte</a></p>

In the frontend i get the following html:

<p class="text-center">Kirchner-Seminare, ...<br /></p><p>Telefon ...</p></p><p>&nbsp;</p><p><p class="text-center">E-Mail an Seminarorganisation<br /></p><p><a href="mailto:..." title="E-Mail senden" class="mail">info@domain.de</a></p></p><p>&nbsp;</p><p class="text-center">&nbsp;</p><p>&nbsp;</p><p class="text-center"><a href="....pdf" title="Initiates file download" target="_blank" class="download">Anfahrtskarte</a></p><p>&nbsp;</p>
It seems that every carriage return in the bodytext field is converted in

– an additional paragraph without the class which breaks the layout in the frontend.

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.