Project

General

Profile

Actions

Bug #88479

open

<p>nbsp</p> in translated CE

Added by Patrick Fischer over 5 years ago. Updated 7 months ago.

Status:
New
Priority:
Should have
Assignee:
-
Category:
RTE (rtehtmlarea + ckeditor)
Target version:
-
Start date:
2019-06-03
Due date:
% Done:

0%

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

Description

RTE inserts "<p>nbsp</p>" into translated content items.

When I try to translate a content element (text & pic) from the original language to another language, it works fine for the first time.
In the backend as well as in the frontend the texts are first displayed correctly.
But as soon as I open the translated text for editing, the RTE inserts a <p>nbsp</p> between the first sentence and the H3-heading.

I was able to reproduce this behavior on a bare TYPO3 instance (version: 8.7.26) without RTE Configration.yaml, as well as on a TYPO3 instance (version: 8.7.26) with RTE Configuration.yaml.

Original Content:

<p>Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua.</p>

<h3>Überschrift H3</h3>

<p>Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua.</p>

Translated Content:

<p>[Translate to Englisch:]</p>

<p>Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua.</p>

<p>&nbsp;</p>

<h3>Überschrift H3</h3>

<p>Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua.</p>

Actions #1

Updated by Riccardo De Contardi over 5 years ago

This issue:

  • affects 8.7.26, 9.5.7 and 10.0.0-dev (latest master)
  • affects both "translate" and "copy" mode
  • happens with just a single paragraph inside the RTE:
<p>Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua.</p>

the translated RTE will have a leading &nbsp;

Actions #2

Updated by Riccardo De Contardi over 4 years ago

The issue is still present on 9.5.14 and 10.4.0-dev (latest master) on both translate and copy mode.

Despite what I wrote on my last comment, the empty paragraph

- is inserted if the first element is a paragraph
- is always inserted after the first paragraph

Actions #3

Updated by Mario Wilhelm almost 3 years ago

  • TYPO3 Version changed from 8 to 10
  • PHP Version changed from 7.0 to 7.4

Still present in 10.4.23

Actions #4

Updated by André Buchmann over 2 years ago

Can confirm this bug in multiple TYPO3 versions

Actions #5

Updated by Riccardo De Contardi about 2 years ago

I can confirm this issue on version 12.0.0-dev (latest main)

Actions #6

Updated by Mario Wilhelm almost 2 years ago

Update:

If you deactivate "[Translate to ...:]" no additional <p>&nbsp;</p> will be added.

Actions #7

Updated by Riccardo De Contardi 7 months ago

Still affects TYPO3 13.2.0-dev (latest main)

Actions

Also available in: Atom PDF