Issue Bug Closed

#89923Empty p-Tag appended to RTE fields after save

Susanne Haberpointner 12/12/19, 07:25 updated 11/07/20, 15:40

Description

Hello,

I have a problem in an extbase extension with using CKEditor for FlexForm fields, where you can dynamically add elements (defined here: https://docs.typo3.org/m/typo3/reference-coreapi/master/en-us/DataFormats/T3datastructure/Elements/Index.html#elements-containing-values-value-elements)
When adding an instance and entering more than 1 line of text/hitting enter after the first line, an additional line feed

is added after
each line and every
Tag is converted into a

tag.

I already tried various different configs for the CKEditor, including setting autoParagraph to false, but to no avail.

TYPO3 Version: 9.5.16

Example:

- before saving

<p>Example 1</p>

<p>Example 2</p>

- after first saving

<p>Example 1</p>

<p>&nbsp;</p>

<p>Example 2</p>

- after second saving

<p>Example 1</p>

<p>&nbsp;</p>

<p>&nbsp;</p>

<p>&nbsp;</p>

<p>Example 2</p>

Flexform-Configuration:

<T3DataStructure>
    <meta>
        <langDisable>1</langDisable>
    </meta>
    <sheets>
        <sDEF>
            <ROOT>
                <TCEforms>
                    <sheetTitle>
                        Settings
                    </sheetTitle>
                </TCEforms>
                <type>array</type>
                <el>
                    <funktion>
                        <TCEforms>
                            <section>1</section>
                            <type>array</type>
                            <el>
                                <point>
                                    <title>Point</title>
                                    <type>array</type>
                                    <el>
                                        <bodytext>
                                            <TCEforms>
                                                <label>Text</label>
                                                <config>
                                                    <type>text</type>
                                                    <row>5</row>
                                                    <cols>48</cols>
                                                    <enableRichtext>1</enableRichtext>
                                                </config>
                                            </TCEforms>
                                        </bodytext>
                                    </el>
                                </point>
                            </el>
                        </TCEforms>
                    </funktion>
                </el>
            </ROOT>
        </sDEF>
    </sheets>
</T3DataStructure>

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.