[TYPO3-RTE] New class does not show up in selector list

Denis Bilodeau denis at ubitext.com
Tue Jan 29 16:23:00 CET 2008


Uschi and Martin,

Thanks for the tips! This is much appreciated.
Denis

Uschi Renziehausen wrote:
> Denis Bilodeau wrote:
>> 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.
>>
> Hello Denis,
> 
> I) to harmonize the contents of your rte.css and your normal css you 
> could do the following:
> 1) divide your css for the frontend into e.g. layout.css and 
> content.css. In the content.css you only define what you need in RTE as 
> well.
> 2) create a file rte.css, and in this one use @import to integrate your 
> content.css.
> 
> II) I sometimes encountered problems like yours. Mostly those errors 
> were due to configuration mistakes, but sometimes it was really due to 
> the browser's cache, because all of a sudden the whole thing worked. A 
> solution that helped sometimes: Delete the temporary js-files, and then 
> clear the browser's cache.
> 
> Prosit, Uschi
> 
> 
> 
> 
> 
>> 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:
>>> Errol Saldanha encountered the problem where new classes where not 
>>> showing up in the class selection list in RTEhtmlarea. He said in a 
>>> further post that the problem was the browser cache, as he could see 
>>> the classes in IE6.
>>>
>>> I encounter the same problem, and the classes are not visible from 
>>> another computer. I tried renaming the  CSS stylesheet, renaming the 
>>> html template where the CSS is named, to no avail.
>>>
>>> If I allow the new class (allowedclasses etc), it is indeed saved 
>>> when I hardcode it in the text editor, which means that the new CSS 
>>> file is there, but when I save, the selector show the new class as 
>>> "undefined".
>>>
>>> Actually, when 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.
>>> It is just the selector list that obstinately does not update itself.
>>>
>>> I have seen a couple references to this in postings, but I am at a 
>>> loss. I have seen how to clear the browser cache manually from Tools 
>>> > Options  > Privacy in Firefox. It does not work.
>>>
>>> Anyone can help? Appreciated.
>>>
>>> Denis


More information about the TYPO3-project-rte mailing list