Bug #88479
open<p>nbsp</p> in translated CE
0%
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> </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>
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
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
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
Updated by André Buchmann over 2 years ago
Can confirm this bug in multiple TYPO3 versions
Updated by Riccardo De Contardi about 2 years ago
I can confirm this issue on version 12.0.0-dev (latest main)
Updated by Mario Wilhelm almost 2 years ago
Update:
If you deactivate "[Translate to ...:]" no additional <p> </p>
will be added.
Updated by Riccardo De Contardi 7 months ago
Still affects TYPO3 13.2.0-dev (latest main)