Bug #19269
closedIndentation set with div section in htmlArea RTE is not rendered correctly in FE
0%
Description
Quoting Jörg Wagner:
Since TYPO3 4.2 the RTE by default uses wrapper DIVs to indent block elements. Unfortunatelly there seems to be a problem with that technique: The FE partially replaces the DIV tags by P tags and this prevents the indenting from working correctly.
In the RTE I indent paragraphs and receive the correct tagging:
<div class="indent"><p>Indenting Level 1</p></div>
<div class="indent"><div class="indent"><p>Indenting Level 2</p></div></div>
After saving this results in the following FE output:
<p class="indent">Indenting Level 1</p>
<p class="indent"><div class="indent">Indenting Level 2</div></p>
The second line is invalid HTML and FireFox as well as IE show only one level of indenting. The replacement of DIV tags by P tags (and the elimination of the inner P tag on the second line) is done during FE output only. When I reopen the content in RTE, I see the correct DIV nesting again.
(issue imported from #M9261)
Files
Updated by Stanislas Rolland about 16 years ago
The attached patch fixes the issue and is submitted to core team list.
Updated by Jörg Wagner about 16 years ago
Patch applied against 4.2.1 and tested successfully !
Updated by Stanislas Rolland about 16 years ago
Committed to SVN TYPO3core trunk revision 4048 and branch TYPO3_4-2 revision 4049.