Project

General

Profile

Actions

Bug #84245

open

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

Added by Frans Saris over 6 years ago. Updated almost 5 years ago.

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

0%

Estimated time:
TYPO3 Version:
8
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:

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>.

Actions

Also available in: Atom PDF