[TYPO3-english] Adding an inline style element to <UL></UL> for lists from RTE

Bert Hiddink [BENDOO e-work solutions] hiddink at bendoo.nl
Wed Aug 28 10:53:10 CEST 2013


Hello!

I wanted to manipulate the inline style for <UL> and <LI>, generated 
from the RTE...

Default settings are (from 
<http://docs.typo3.org/typo3cms/TyposcriptIn45MinutesTutorial/TypoScriptFunctions/EncapsLines/Index.html>):

lib.parseFunc_RTE {

         nonTypoTagStdWrap.encapsLines {

                # Wrapping tags.
                encapsTagList = div,p,pre,h1,h2,h3,h4,h5,h6

                # Convert all DIV tags to P tags.
                remapTag.DIV = P

                # Wrap all lines, which are not wrapped at all, with the 
<p> tag.
                nonWrappedTag = P

                # Add a space to all empty lines.
                innerStdWrap_all.ifBlank = &nbsp;

                # Here the - infamous - class "bodytext" is added.
                addAttributes.P.class = bodytext

                # Use addAttributes, if no other attribute is set.
                addAttributes.P.class.setOnly = blank
        }
}

However, if I add:

lib.parseFunc_RTE {

         nonTypoTagStdWrap.encapsLines {

                # Wrapping tags.
                encapsTagList = div,p,pre,h1,h2,h3,h4,h5,h6,ul, li

                addAttributes.UL.style = color:red
                addAttributes.LI.style = padding: 10px

        }
}

...this has no effect. What am I missing here? Any ideas/pointers?

Thanks in advance!

Regards,
Bert


More information about the TYPO3-english mailing list