[TYPO3-RTE] Indentation using wrapper DIVs
Joerg Wagner
news.netfielders.de at digilog.de
Thu Aug 28 21:26:15 CEST 2008
Hello,
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.
Any idea how I can solve this?
Cheers,
Jörg.
More information about the TYPO3-project-rte
mailing list