Issue Bug Closed

#88479<p>nbsp</p> in translated CE

Patrick Fischer 06/03/19, 14:32 updated 12/02/25, 14:36

Description

RTE inserts “

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

Reviews 2

History 1118

  1. Riccardo De Contardi commented <span data-processor="relativetime" data-value="2019-06-03T22:12:49+00:00" > 06/03/19, 22:12 </span>

    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 &amp;nbsp;

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

  3. Mario Wilhelm commented and changed TYPO3 Version 8 10 PHP Version 7.0 7.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

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

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

  6. 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>&nbsp;</p> will be added.

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

  8. 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']);
  9. Benni Mack commented and changed status Under Review Resolved done 0 % 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.