[TYPO3-content-rendering] default inline-styles for ul + ol
Uschi Renziehausen
typo3news at otherone.de
Mon Dec 15 14:21:10 CET 2008
Hi Michael,
I just tested the following solution in my installation and it works:
lib.parseFunc_RTE {
externalBlocks = table, blockquote, ol,ul, div, dl, dd, li
externalBlocks {
ol.stripNL=1
ol.callRecursive = 1
ol.callRecursive.tagStdWrap.HTMLparser = 1
ol.callRecursive.tagStdWrap.HTMLparser.tags.ol {
fixAttrib.style.default = background-color:lime
fixAttrib.class.unset = 1
}
}
}
The p comes in when you do not add li to the list of external blocks.
Prosit, Uschi
Michael Bakonyi wrote:
> Hi,
>
> as googlemail deletes all CSS in the header of a HTML-mail I need
> some inline-CSS-styles for the UL and OL-tags. But when I try the
> following:
>
> lib.parseFunc_RTE{ nonTypoTagStdWrap{ encapsLines{ addAttributes.P{
> class > style = margin:0 0 15px 0; } } }
> tags.link.typolink.ATagParams = style="color:#EC6102"
>
> externalBlocks{ ol.callRecursive=1
> ol.callRecursive.tagStdWrap.HTMLparser = 1
> ol.callRecursive.tagStdWrap.HTMLparser.tags.ol.fixAttrib.style{
> default = margin:0 0 15px 30px; }
>
> ul.callRecursive=1 ul.callRecursive.tagStdWrap.HTMLparser = 1
> ul.callRecursive.tagStdWrap.HTMLparser.tags.ul.fixAttrib.style{
> default = margin:0 0 15px 30px; } } }
>
> within the UL/OL-tag an additional P-Tag is rendered:
>
> <ol style="margin:0 0 15px 30px;"> <p style="margin:0 0 15px 0;">
> <li>asdf</li> <li>asdf</li> </p> </ol>
>
> How is it possible to get the inline-styles and at the same time get
> rid of this P-tag?
>
> Couldn't found a solution so far, Michael
More information about the TYPO3-project-content-rendering
mailing list