Issue Bug Closed

#84245l10n_mode = prefixLangTitle results in extra empty paragraphs for RTE enabled fields

Frans Saris 03/13/18, 15:42 updated 08/12/25, 14:35

Description

For tt_content.bodytext the TCA l10n_mode is set to 'prefixLangTitle'.

This results in a string being pre-pended to the field value. And because this string isn’t wrapped in <p></p> or other tag the rendering switches back to the old behavior and adds a extra `

&nbps;

` to the end of the content.

So:

<p>my text</p>

Gets in DB:

[Translate to USA:]<p>mytext</p>

And when you open the RTE you get:

<p>[Translate to USA:]</p>
<p>mytext</p>
<p>&nbsp;</p>

This is then saved to DB after pushing save

Expected in DB before manual save:

<p>[Translate to USA:]</p>
<p>mytext</p>

So the first line is wrapped in <p></p>.

Reviews 2