[TYPO3] Controlling which classes enter into the paragraph selector list

Denis Bilodeau denis at ubitext.com
Wed Jan 23 19:23:35 CET 2008


Thank you Tyler!

This is going to be humiliating, but if anyone ever encounter the same 
problem...: I simply forgot to re-reference the right stylesheet in the 
TS page config. So the RTE selector was still getting its list of 
classes from the old stylesheet, which was still there.

But, thanks to Tyler, I learned this through this blunder: it is better 
to create a RTE specific stylesheet, which is a way to control which 
classes appear in the RTE, regardless of how many classes you have in 
your main site CSS file.

Denis

Denis Bilodeau wrote:
> As an answer to the helpful replies and hope for more: my config below
> 
> Denis
> 
> 1. Closing and reopening Firefox does not work.
> 
> 2. The CSS stylesheet contains many classes not yet defined in my 
> allowed list, but they do show up in the selector list.
> 
> 3. In the template TS, I have these two lines:
> 
> lib.parseFunc_RTE.externalBlocks.table.HTMLtableCells.default >
> lib.parseFunc_RTE.externalBlocks.table.HTMLtableCells.default.stdWrap.parseFunc 
> =< lib.parseFunc
> 
> 4. Here is my page TS config:
> 
> #to hide the other column positions since our design does not use it
> mod.SHARED.colPos_list = 0,3
> 
> 
> ################### Customizing HTMLAREA
> RTE.default.showButtons = *
> RTE.default.hideButtons = fontstyle, image, strikethrough, emoticon, 
> underline, lefttoright, righttoleft, acronym, copy, cut, paste, bgcolor, 
> textindicator
> # fontsize, textcolor,
> 
> RTE.default.keepButtonGroupTogether = 1
> 
> RTE.default.contentCSS = fileadmin/template/stylesheet_1.css
> RTE.default.ignoreMainStyleOverride = 1
> #RTE.default.proc.dontConvBRtoParagraph = 1
> 
> RTE.default {
>        showTagFreeClasses = 1
> 
> ## Hide infrequently used paragraph types in the paragraph type selector 
> (formatblock button)
> #hidePStyleItems = warn
> 
> proc.allowedClasses (
> small, normal_b, align-left, align-center, align-right, rightcol_text, 
> rightcol
>           )
> classesParagraph (
> normal_b, align-left, align-center, align-right, rightcol_text, rightcol
>           )
>    classesCharacter = small
> }
> 
> #RTE.classes {
> # cssClass.normal_b = something
> #}
> 
> #RTE.config.tt_content.bodytext.proc.allowedClasses = normal_b, 
> align-left, #align-center, align-right, rightcol_text
> 
> 
> 
> RTE.default.hideFontSizes = 5, 6, 7
> 
> RTE.colors {
>   color1 {
>     name = Background color
>     value = blue
>   }
>   color2 {
>     name = Another color
>     value = #775533
>   }
>   noColor {
>     name = No color
>     value =
>   }
> }
> # Specific setting for the font color selector:
> RTE.default.colors = color1, color2, noColor
> 
> RTE.default.disableColorPicker = 1
> 
> #To keep align to work
> #TCEFORM.tt_content.text_align.disabled = 0
> RTE.default {
> proc.entryHTMLparser_db.tags {
>     p.fixAttrib.align.unset >
>     div.fixAttrib.align.unset >
>     p.allowedAttribs = class,style,align
>     span.fixAttrib.style.unset >
> }
> }
> 
> 
> Denis Bilodeau wrote:
>> If I make a change to an existing class in the CSS file and upload it, 
>> a simple clearing of the FE cache makes the change effective, and this 
>> always work unfailingly.
>>
>> But a new class does not appear in the selector list, and a change of 
>> order of two classes does not show either... Somehow, the selector 
>> list does not update itself on the new CSS stylesheet.
>>
>> Denis
>>
>>
>> Denis Bilodeau wrote:
>>> I know of the RTE list, but traffic is rather rare there at the 
>>> moment, and I expect many here will have encountered the same problem.
>>>
>>> In RTEhtmlarea, I have a list of my classes in the selector list, 
>>> from my CSS stylesheet. I add a class on the stylesheet, and it does 
>>> not show  up in the selector list.
>>>
>>> I have read the postings, manually cleared the browser cache, checked 
>>> on  a different computer whether it is the browser cache, and the 
>>> list is not updated there either.
>>>
>>> I have renamed the CSS sheet and template where the CSS stylesheet is 
>>> named, in order to force a reset. No result.
>>>
>>> I have allowed the new class in "proc.allowedclasses" etc. It is 
>>> allowed, and I change to the new class manually and when I save, the 
>>> class is recognized, saved, and effective in the text editor but in 
>>> the selector list, the class is identified as "undefined".
>>>
>>> What am I forgetting? Anyone can help? If it is a cache, please 
>>> detail how to update it, I have tried everything I know.
>>>
>>> Many thanks,
>>> Denis


More information about the TYPO3-english mailing list