Project

General

Profile

Actions

Bug #22210

closed

RTE transformation removes empty paragraphs before a header

Added by Konrad Schiertz about 14 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Must have
Category:
Miscellaneous
Target version:
Start date:
2010-03-01
Due date:
% Done:

0%

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

Description

Strange effect:
If i set removeTrailingBR = 1 every time on saving one empty paragraph bevor a header tag will be removed.

1. Step:
<p> </p>
<p> </p>
<p> </p>
<h1>Example</h1>

2. Saving one time
<p> </p>
<p> </p>
<h1>Example</h1>

3. Saving the second time
<p> </p>
<h1>Example</h1>

and so on.

TYPO3 4.3.2
htmlarea 1.8.8
typical mode
(issue imported from #M13696)


Related issues 1 (0 open1 closed)

Is duplicate of TYPO3 Core - Bug #36904: RTE: Empty paragraphs are not correctly transformedClosedStanislas Rolland2012-05-07

Actions
Actions #1

Updated by gr almost 13 years ago

  • Target version deleted (0)

Even if

RTE.default.init.removeTrailingBR = 0

is set, empty P-Tags (<p></p>) between text and a table get deleted

Text
         <- Line gets deleted when the content is saved, one line deleted per save
-Table-

This issue is NOT just "should have".

Actions #2

Updated by Harald Dolderer over 12 years ago

I can aknowlege this behaviour in typo3 4.5.4
RTE.default.init.removeTrailingBR = 0 or RTE.default.removeTrailingBR = 0 doesn't change anything.
This should be adjusted soon.
It is a very anoying bug for Editors.
Thank you for checking.

Actions #3

Updated by Stanislas Rolland over 12 years ago

  • Category set to RTE (rtehtmlarea + ckeditor)
  • TYPO3 Version set to 4.5
Actions #4

Updated by Stanislas Rolland over 12 years ago

removeTrailingBR has no effect on this behaviour.

Looks like a problem with the RTE transformation.

One of the paragraphs that contain only a space is lost on the way to the RTE.

Actions #5

Updated by Stanislas Rolland over 12 years ago

  • Subject changed from removeTrailingBR = 1 removes empty paragraphs bevor a header to RTE transformation removes empty paragraphs before a header
  • Category changed from RTE (rtehtmlarea + ckeditor) to Miscellaneous
  • Assignee set to Stanislas Rolland
  • Priority changed from Should have to Must have
Actions #6

Updated by Konrad Schiertz over 12 years ago

  • Target version set to 4.5.8

This behaviour is allways active in typo3 4.5.7, really anoying for editors.

This part deletes one line when the content is saved, one line deleted per save.

class.t3lib_parsehtml_proc

Line: 1334-1336

if (trim(strip_tags($divSplit[$k])) == ' ' && !preg_match('/\<(img)(\s[^>]*)?\/?>/si', $divSplit[$k]) && !preg_match('/\<([^>]*)?( align| class| style| id| title| dir| lang| xml:lang)([^>]*)?>/si', trim($divSplit[$k]))) {
$divSplit[$k] = '';
}

Actions #7

Updated by Konrad Schiertz over 12 years ago

  • Target version changed from 4.5.8 to 4.5.10

This behaviour is again active in typo3 4.5.9.

Actions #8

Updated by Ernesto Baschny over 12 years ago

  • Target version changed from 4.5.10 to 4.5.12
Actions #9

Updated by Kurt Kunig over 11 years ago

Bug is still in Version 4.7.7 existent!?

replace line 1343 in class.t3lib_parsehtml_proc.php
with

$divSplit[$k] = '&nbsp;';

instead of
$divSplit[$k] = '';

Actions #10

Updated by Stanislas Rolland about 11 years ago

  • Status changed from New to Resolved
Actions #11

Updated by Riccardo De Contardi over 6 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF