Project

General

Profile

Actions

Bug #71769

closed

Newline appended to RTE fields after save

Added by Artus Kolanowski almost 9 years ago. Updated about 7 years ago.

Status:
Closed
Priority:
Must have
Assignee:
Category:
RTE (rtehtmlarea + ckeditor)
Start date:
2015-11-22
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
7
PHP Version:
Tags:
Complexity:
Is Regression:
Yes
Sprint Focus:

Description

Whenever you save a record with a RTE field, a newline character is appended to that field. So when you save a record 10 times, 10 newline characters are append to all RTE fields of that record.

Actions #1

Updated by Riccardo De Contardi almost 9 years ago

  • Status changed from New to Needs Feedback

Hi, can you tell us more about how to reproduce this?

- What browser are you using?
- Are you using CSS Styled Content or Fluid Styled Content?
- Are you using the default RTE configuration or a custom one?

I tried with both 7.6.0 and the latest master from Git and I can't reproduce it. Tested with Chrome, Firefox and Safari on MAC

Actions #2

Updated by Riccardo De Contardi almost 9 years ago

  • Target version changed from 7.6.1 to Candidate for patchlevel
Actions #3

Updated by Artus Kolanowski almost 9 years ago

It happens only when you just use: 'defaultExtras' => 'richtext[]' for the RTE field, so my description was incomplete. When you use 'defaultExtras' => richtext:rte_transform[mode=ts_css] it's all fine.

Actions #5

Updated by Artus Kolanowski almost 9 years ago

Christoph Lehmann wrote:

As of https://docs.typo3.org/typo3cms/CoreApiReference/Rte/Transformations/Overview/Index.html#meta-transformations mode=ts_css is the recommended configuration

This is correct but why would no RTE transformation mode change the editors input in the described way? Seems to be a bug.

Actions #6

Updated by Artus Kolanowski almost 9 years ago

Riccardo De Contardi wrote:

Hi, can you tell us more about how to reproduce this?

- What browser are you using?
- Are you using CSS Styled Content or Fluid Styled Content?
- Are you using the default RTE configuration or a custom one?

I tried with both 7.6.0 and the latest master from Git and I can't reproduce it. Tested with Chrome, Firefox and Safari on MAC

The appended newlines are stored in the database. I've tested this with no transform mode configured in the TCA ( 'defaultExtras' => 'richtext[]') on a fresh install of the current develop. The used browser for the backend doesn't seem to make any difference.

Actions #7

Updated by Riccardo De Contardi almost 9 years ago

  • Status changed from Needs Feedback to New
Actions #8

Updated by Jo Hasenau over 8 years ago

  • Status changed from New to Needs Feedback

Seems that the transformation of form values into DB fields is still done, while it is ignored when transforming from DB to form. Does this sound plausible?

Actions #9

Updated by Jo Hasenau over 8 years ago

  • Category set to RTE (rtehtmlarea + ckeditor)
  • Status changed from Needs Feedback to Accepted
  • Assignee set to Jo Hasenau
Actions #10

Updated by Bernhard Eckl almost 8 years ago

Same here. And when I use 'defaultExtras' => richtext:rte_transform[mode=ts_css] it does not insert new lines, but instead it inserts:
<p> </p>

Maybe it has todo with: https://forge.typo3.org/issues/45527.

Actions #11

Updated by Riccardo De Contardi about 7 years ago

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

Updated by Riccardo De Contardi about 7 years ago

  • Related to deleted (Bug #81893: ck_editor: Linefeeds added after each save)
Actions #13

Updated by Mathias Schreiber about 7 years ago

  • Status changed from Accepted to Closed

HTMLArea is no longer supported by TYPO3.
You can open up new issues here https://github.com/FriendsOfTYPO3/rtehtmlarea.

Cheers
Mathias

Actions

Also available in: Atom PDF