Project

General

Profile

Actions

Bug #89923

closed

Empty p-Tag appended to RTE fields after save

Added by Susanne Haberpointner almost 5 years ago. Updated about 4 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 (0 open2 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 saveClosed2017-07-17

Actions
Actions #1

Updated by Bastian Bringenberg almost 5 years ago

  • Project changed from 9 to TYPO3 Core
  • TYPO3 Version set to 8

Moved to correct project and changed TYPO3 Version.

Actions #2

Updated by Susanne Haberpointner almost 5 years ago

  • Description updated (diff)
  • PHP Version set to 7.2
Actions #3

Updated by Riccardo De Contardi almost 5 years ago

maybe this is related? #81893

Actions #4

Updated by Susanne Haberpointner almost 5 years ago

Riccardo De Contardi wrote:

maybe this is related? #81893

yes, this seems to be a similar issue, but my issue only occurs while using ckeditor in connection with flexform. there also seems to be no activity/possible solution there.

Actions #5

Updated by Benni Mack almost 5 years ago

  • Status changed from New to Needs Feedback

Hey Susanne,

can you let us know which TYPO3 v8 version you're exactly using.

The described behaviour has been fixed in August 2019 (see https://review.typo3.org/c/Packages/TYPO3.CMS/+/60902)

Actions #6

Updated by Benni Mack over 4 years ago

  • Related to Bug #80778: CKeditor inserts empty paragraphs in FlexForms added
Actions #7

Updated by Riccardo De Contardi over 4 years ago

  • Category set to RTE (rtehtmlarea + ckeditor)
Actions #8

Updated by Susanne Haberpointner over 4 years ago

Benni Mack wrote:

Hey Susanne,

can you let us know which TYPO3 v8 version you're exactly using.

The described behaviour has been fixed in August 2019 (see https://review.typo3.org/c/Packages/TYPO3.CMS/+/60902)

Hello,

the TYPO3 version we used was 8.7.32.
We since upgraded to version 9.5.16, but unfortunately the problem still exists.

Thanks in advance for your reply.

Actions #9

Updated by Susanne Haberpointner over 4 years ago

  • TYPO3 Version changed from 8 to 9
Actions #10

Updated by Susanne Haberpointner over 4 years ago

  • Description updated (diff)
Actions #11

Updated by Florian Michel over 4 years ago

We had exactly the same issue. After investigating the configuration in pageTS, we found an old RTE configuration option that was causing this problem:

RTE.default.proc.overruleMode = ts_css

After we commented this out as a test, the additional line-break after saving a text content element was gone...

The issue occured not only in an extension or flexform field, but in core elements (text, textmedia, etc.) as well. Maybe this helps others dealing with this annoying problem.

Actions #12

Updated by Riccardo De Contardi over 4 years ago

It looks like that this is indeed related to #81893. On both cases the problem lies in the "ts_css mode"; it looks like it has been removed here:

https://docs.typo3.org/c/typo3/cms-core/master/en-us/Changelog/9.0/Breaking-80700-DeprecatedFunctionalityRemoved.html?highlight=ts_css

Actions #13

Updated by Riccardo De Contardi about 4 years ago

  • Status changed from Needs Feedback to Closed

I think it is safe to close this issue for now (long time without feedback and seems related to a deprecated feature)

If you think that this is the wrong decision, please reopen it or ping me and I'll do

Thank you.

Actions #14

Updated by Riccardo De Contardi about 4 years ago

  • Related to Bug #81893: ck_editor: Linefeeds added after each save added
Actions

Also available in: Atom PDF