Project

General

Profile

Actions

Bug #89923

closed

Empty p-Tag appended to RTE fields after save

Added by Susanne Haberpointner over 4 years ago. Updated over 3 years ago.

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

0%

Estimated time:
TYPO3 Version:
9
PHP Version:
7.2
Tags:
Complexity:
Is Regression:
Sprint Focus:

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 <p> </p> is added after
each line and every <br /> Tag is converted into a <p></p> 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>


Related issues 2 (1 open1 closed)

Related to TYPO3 Core - Bug #80778: CKeditor inserts empty paragraphs in FlexFormsClosed2017-04-09

Actions
Related to TYPO3 Core - Bug #81893: ck_editor: Linefeeds added after each saveNew2017-07-17

Actions
Actions

Also available in: Atom PDF