Project

General

Profile

Actions

Bug #92892

closed

RTE in TCA of type='flex' in combination with type='array' in flexform adds empty <p>&nbsp ;</p>

Added by Paul Kamma about 4 years ago. Updated 5 months ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
RTE (rtehtmlarea + ckeditor)
Target version:
-
Start date:
2020-11-20
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
10
PHP Version:
7.3
Tags:
rte, flexform
Complexity:
Is Regression:
Sprint Focus:

Description

I have the following setup to extend a TCA of a Model

$GLOBALS['TCA']['tx_myExtension_domain_model_event']['columns']['attributes']['config'] = [
    'type' => 'flex',
    'ds' => [
        'default' => 'FILE:EXT:myExtension/Configuration/FlexForms/event.xml',
    ],
];

the flexForm looks like this:

<T3DataStructure>
  <ROOT>
    <type>array</type>
    <el>
      <attributes>
        <TCEforms>
          <section>1</section>
          <title>Attributes</title>
          <type>array</type>
          <el>
            <attribute>
              <title>Attribute</title>
              <type>array</type>
              <el>
                <info>
                  <TCEforms>
                    <label>Copy</label>
                    <config>
                      <type>text</type>
                      <rows>5</rows>
                      <cols>30</cols>
                      <eval>trim</eval>
                      <enableRichtext>true</enableRichtext>
                    </config>
                  </TCEforms>
                </info>
              </el>
            </attribute>
          </el>
        </TCEforms>
      </attributes>
    </el>
  </ROOT>
</T3DataStructure>

When I add a "Attribute" element within the Section and type text with two paragraphs. After saving the RTE creates an Additional paragraph between the two inserted with <p>&nbsp ;</p>.
Looks like that it the <p>&nbsp ;</p> appears when it converts the empty lines to the empty paragraphs. They are not written in the DB.

Actions

Also available in: Atom PDF