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

History 1116

  1. Frans Saris changed category 03/13/18, 15:43

  2. Tymoteusz Motylewski commented 03/17/18, 15:32

    so what is the expected state?

  3. Frans Saris commented and changed description 03/17/18, 21:59

    Updated description with expected result.

  4. Susanne Moog changed Sprint Focus On Location Sprint 10/25/18, 11:56

  5. Ursula Klinger commented 10/25/18, 20:59

    I cannot reproduce it with CKE-Editor and TYPO3 9

  6. Benni Mack changed target version 04/17/19, 23:42

  7. Riccardo De Contardi commented 12/12/19, 09:38

    maybe this is related? #88479

  8. Susanne Moog changed Sprint Focus On Location Sprint 01/12/20, 12:06

  9. Benni Mack changed Related to #88479 12/11/24, 23:16

  10. Gerrit Code Review pushed patch set 3 for main to change 87462 status New Under Review 12/12/24, 00:12

  11. Gerrit Code Review pushed patch set 4 for main to change 87462 12/19/24, 20:42

  12. Gerrit Code Review pushed patch set 5 for main to change 87462 12/19/24, 20:42

  13. Gerrit Code Review pushed patch set 6 for main to change 87462 03/08/25, 14:49

  14. Gerrit Code Review pushed patch set 1 for 13.4 to change 88551 03/10/25, 11:47

  15. Benni Mack commented and changed status Under Review Resolved done 0 % 100 % 03/10/25, 12:05

    Applied in changeset commit:819da0307511694cbb401ba0dd287641985650a6.

  16. Benni Mack changed status Resolved Closed 08/12/25, 14:35