#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 <span data-processor="relativetime" data-value="2019-06-03T22:12:49+00:00" > 06/03/19, 22:12 </span>
-
Riccardo De Contardi commented <span data-processor="relativetime" data-value="2020-03-14T23:41:28+00:00" > 03/14/20, 23:41 </span>
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 <span data-processor="relativetime" data-value="2022-02-14T07:08:39+00:00" > 02/14/22, 07:08 </span>Still present in 10.4.23
-
André Buchmann commented <span data-processor="relativetime" data-value="2022-03-23T09:28:04+00:00" > 03/23/22, 09:28 </span>
Can confirm this bug in multiple TYPO3 versions
-
Riccardo De Contardi commented <span data-processor="relativetime" data-value="2022-09-25T08:35:45+00:00" > 09/25/22, 08:35 </span>
I can confirm this issue on version 12.0.0-dev (latest main)
-
Mario Wilhelm commented <span data-processor="relativetime" data-value="2023-01-26T10:01:52+00:00" > 01/26/23, 10:01 </span>
Update:
If you deactivate “[Translate to …:]” no additional
<p> </p>will be added. -
Riccardo De Contardi commented <span data-processor="relativetime" data-value="2024-05-04T17:01:16+00:00" > 05/04/24, 17:01 </span>
Still affects TYPO3 13.2.0-dev (latest main)
-
Benni Mack commented <span data-processor="relativetime" data-value="2024-12-11T20:08:40+00:00" > 12/11/24, 20:08 </span>
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 <span data-processor="relativetime" data-value="2024-12-11T20:08:50+00:00" > 12/11/24, 20:08 </span> -
Gerrit Code Review pushed patch set 2 for main to change 87462 <span data-processor="relativetime" data-value="2024-12-11T22:58:33+00:00" > 12/11/24, 22:58 </span>
-
Benni Mack changed Related to #84245 <span data-processor="relativetime" data-value="2024-12-11T23:16:43+00:00" > 12/11/24, 23:16 </span>
-
Gerrit Code Review pushed patch set 3 for main to change 87462 <span data-processor="relativetime" data-value="2024-12-12T00:12:21+00:00" > 12/12/24, 00:12 </span>
-
Gerrit Code Review pushed patch set 4 for main to change 87462 <span data-processor="relativetime" data-value="2024-12-19T20:42:09+00:00" > 12/19/24, 20:42 </span>
-
Gerrit Code Review pushed patch set 5 for main to change 87462 <span data-processor="relativetime" data-value="2024-12-19T20:42:41+00:00" > 12/19/24, 20:42 </span>
-
Gerrit Code Review pushed patch set 6 for main to change 87462 <span data-processor="relativetime" data-value="2025-03-08T14:49:47+00:00" > 03/08/25, 14:49 </span>
-
Gerrit Code Review pushed patch set 1 for 13.4 to change 88551 <span data-processor="relativetime" data-value="2025-03-10T11:47:03+00:00" > 03/10/25, 11:47 </span>
-
Benni Mack commented and changed status
Under ReviewResolved done0 %100 % <span data-processor="relativetime" data-value="2025-03-10T12:05:08+00:00" > 03/10/25, 12:05 </span>Applied in changeset commit:819da0307511694cbb401ba0dd287641985650a6.
-
Benni Mack changed status
ResolvedClosed <span data-processor="relativetime" data-value="2025-12-02T14:36:45+00:00" > 12/02/25, 14:36 </span>
This issue:
the translated RTE will have a leading
&nbsp;