Bug #84245

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

Added by Frans Saris over 1 year ago. Updated 2 months ago.

Status:
New
Priority:
Should have
Assignee:
-
Category:
RTE (rtehtmlarea + ckeditor)
Start date:
2018-03-13
Due date:
% Done:

0%

TYPO3 Version:
8
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:
On Location Sprint

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 `<p>&nbps;</p>` 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>.

History

#1 Updated by Frans Saris over 1 year ago

  • Category changed from DataHandler aka TCEmain to RTE (rtehtmlarea + ckeditor)

#2 Updated by Tymoteusz Motylewski over 1 year ago

so what is the expected state?

#3 Updated by Frans Saris over 1 year ago

  • Description updated (diff)

Updated description with expected result.

#4 Updated by Susanne Moog 8 months ago

  • Sprint Focus set to On Location Sprint

#5 Updated by Ursula Klinger 8 months ago

I cannot reproduce it with CKE-Editor and TYPO3 9

#6 Updated by Benni Mack 2 months ago

  • Target version changed from next-patchlevel to Candidate for patchlevel

Also available in: Atom PDF