[TYPO3-v4] Please review #25083 Content rendering: Definition lists inserted in RTE are wrapped in paragraphs
Steffen Müller
typo3 at t3node.com
Wed Oct 12 19:38:25 CEST 2011
Hi.
On 04.10.2011 10:04 Stanislas Rolland wrote:
>>
>> Bugtracker issue: Content rendering: Definition lists inserted in RTE
>> are wrapped in paragraphs (http://forge.typo3.org/issues/25083)
I have testet the patch on a clean TYPO3 4.5.
The patch did not fix the issue fully, the definition list is still
wrapped in <p class="bodytext"></p>
I also had to add dd,dl,dt also to lib.parseFunc_RTE.allowTags -
otherwise they get htmlspecialchared.
This is how my complete TypoScript looks like:
#####################################
lib.parseFunc_RTE.allowTags =
b,i,u,a,img,br,div,center,pre,font,hr,sub,sup,p,strong,em,li,ul,ol,blockquote,strike,del,ins,span,h1,h2,h3,h4,h5,h6,address,dd,dl,dt
lib.parseFunc_RTE.externalBlocks = table, blockquote, ol, ul, div, dd
lib.parseFunc_RTE.nonTypoTagStdWrap.encapsLines.encapsTagList =
p,pre,h1,h2,h3,h4,h5,h6,hr,dl,dt
page = PAGE
page.10 < styles.content.get
#####################################
This is the content of my content element:
#####################################
<dl><dt>Coffee</dt><dd>black hot drink</dd><dt>Milk</dt><dd>white cold
drink</dd></dl>
#####################################
This is the result in Fontend:
#####################################
<p class="bodytext"><dl><dt>Coffee</dt></p><dd>black hot
drink</dd><dt>Milk</dt><dd>white cold drink</dd><p
class="bodytext"></dl></p>
#####################################
Without the patch, it looks like this:
#####################################
<p class="bodytext"><dl><dt>Coffee</dt><dd>black hot
drink</dd><dt>Milk</dt><dd>white cold drink</dd></dl></p>
#####################################
--
cheers,
Steffen
TYPO3 Blog: http://www.t3node.com/
Twitter: @t3node - http://twitter.com/t3node
More information about the TYPO3-project-v4
mailing list