[TYPO3-dev] RTE Custom Classes aren't showing up in the front-end

Jason Alexander jalexander at digipen.edu
Tue Mar 30 19:38:57 CEST 2010


I believe I haven't set them in the front-end. I really feel stupid. Sorry for the mistake

Thanks Steffen,


Jason R Alexander








On Mar 30, 2010, at 1:33 AM, Steffen Ritter wrote:

> Am 30.03.2010 01:34, schrieb Jason Alexander:
>> Hello All,
>> 
>> So I am fairly new to configuring the RTE. But I am trying to add custom classes to it. The issue that I am having is that it doesn't show up in the front-end when I preview the page. It's like it strips all the styling out?? In the backend within the RTE it shows the custom class styling just fine. This is the code that I am using:
>> 
>> RTE {
>>     default {
>>         # link to site css stylesheet
>>         ignoreMainStyleOverride = 1
>>         contentCSS = fileadmin/rte_styles/rte_styles.css
>> 
>>         # clear typical styling
>>         classesAnchor>
>>         classesLinks =
>>         # set classes available to these properties. Paragraph is another name
>>         # for block
>>         classesCharacter := addToList(internalLinks, externalLinks)
>>         classesParagraph := addToList(internalLinks, externalLinks)
>>         classesTD := addToList(sub)
>>         classesTable := addToList(full, fixed)
>> 
>>         showTagFreeClasses = 1
>> 
>>         # list all available classes here, otherwise they're removed on RTE save
>>         proc.allowedClasses := addToList(internalLinks, externalLinks)
>>     }
>> 
>> }
>> 
>> 
>> Any suggestions, examples. Please help.
>> 
>> Thanks in advance,
>> 
>> Jason R Alexander
>> 
> did you include your rte_styles in frontend to? RTE only sets the classes in html, but does not inlcude the definitions for them.
> _______________________________________________
> TYPO3-dev mailing list
> TYPO3-dev at lists.typo3.org
> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-dev





More information about the TYPO3-dev mailing list