Issue Bug Closed

#102572Inconsistent br handling in table content element

Christoph Lehmann 11/30/23, 13:49 updated 07/09/24, 15:12

Description

1. Click “small fields” (first button, top left) to enable big fields
2. Add text in a new line:

no-br-added.png

3. Save the element

Wrong Another table row is added

new-row-added.png

Correct Given you press the button “small fields” before save, then a br tag is added:

br-added.png

Reviews 2

Files 3

History 57

  1. Oliver Hader commented and changed status New Accepted TYPO3 Version 12 11 12/04/23, 14:07

    Confirmed. The Lit-Element wizard was introduced with TYPO3 v11

  2. Oliver Hader changed Related to #95036 12/04/23, 14:14

  3. Oliver Hader commented 12/04/23, 14:20

    In TYPO3 v11 (prior to dropping the TableController in issue #95036), this was stored like this

    Title 1|Title 2|Title 3<br />a<br />a
    Row 1|Row 1|Row 1
    Row 2|Row 2|Row 2
    Row 3|Row 3|Row 3
    Row 4|Row 4|Row 4

    It can be solved in JavaScript by converting newlines to <br>, however actually the renderType=textTable should also be handled in DataHandler.

  4. Gerrit Code Review pushed patch set 1 for main to change 82082 status Accepted Under Review 12/04/23, 15:15

  5. Gerrit Code Review pushed patch set 1 for 12.4 to change 82022 12/05/23, 07:06

  6. Oliver Hader commented and changed status Under Review Resolved done 0 % 100 % 12/05/23, 07:20

    Applied in changeset commit:7224dc1e5b9ceb2af3ea1386062613ccd152958f.

  7. Benni Mack changed status Resolved Closed 07/09/24, 15:12