#88479<p>nbsp</p> in translated CE
Description
nbsp
“ 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
nbsp
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>
Reviews 2
Related issues 1
History 1118
-
Riccardo De Contardi commented 06/03/19, 22:12
-
Riccardo De Contardi commented 03/14/20, 23:41
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 -
Mario Wilhelm commented and changed TYPO3 Version
810 PHP Version7.07.4 02/14/22, 07:08Still present in 10.4.23
-
André Buchmann commented 03/23/22, 09:28
Can confirm this bug in multiple TYPO3 versions
-
Riccardo De Contardi commented 09/25/22, 08:35
I can confirm this issue on version 12.0.0-dev (latest main)
-
Mario Wilhelm commented 01/26/23, 10:01
Update:
If you deactivate “[Translate to …:]” no additional
<p> </p>will be added. -
Riccardo De Contardi commented 05/04/24, 17:01
Still affects TYPO3 13.2.0-dev (latest main)
-
Benni Mack commented 12/11/24, 20:08
Thanks for your reports – this helped detect the issue quite directly.
A solution is to disable ‘prefixLangTitle’ like this until a fix is there:
unset($GLOBALS['TCA']['tt_content']['columns']['bodytext']['l10n_mode']);
-
Gerrit Code Review pushed patch set 1 for main to change 87462 status
NewUnder Review 12/11/24, 20:08 -
Gerrit Code Review pushed patch set 2 for main to change 87462 12/11/24, 22:58
-
Benni Mack changed Related to #84245 12/11/24, 23:16
-
Gerrit Code Review pushed patch set 3 for main to change 87462 12/12/24, 00:12
-
Gerrit Code Review pushed patch set 4 for main to change 87462 12/19/24, 20:42
-
Gerrit Code Review pushed patch set 5 for main to change 87462 12/19/24, 20:42
-
Gerrit Code Review pushed patch set 6 for main to change 87462 03/08/25, 14:49
-
Gerrit Code Review pushed patch set 1 for 13.4 to change 88551 03/10/25, 11:47
-
Benni Mack commented and changed status
Under ReviewResolved done0 %100 % 03/10/25, 12:05Applied in changeset commit:819da0307511694cbb401ba0dd287641985650a6.
-
Benni Mack changed status
ResolvedClosed 12/02/25, 14:36
This issue:
the translated RTE will have a leading
&nbsp;