[TYPO3-core] RFC #9613: RTE uses JScodeLibArray to insert CSS

Jeff Segars jsegars at alumni.rice.edu
Thu Oct 23 01:26:45 CEST 2008


Stanislas Rolland wrote:
> Stanislas Rolland a écrit :
>>
>> Solution:
>> The attached patch adds array $additionalHeaderData to class template, 
>> and uses it to add the additional head section content needed by the 
>> RTE. $GLOBALS['TSFE']->additionalHeaderData is used instead when 
>> available.
>>
> Attaching a better patch for trunk.
> 
> This patch adds method addStyleSheet($key, $href, $title, $linkType)
> to class template. The method is then wrapped by t3lib_TCEforms, 
> redefined in t3lib_TCEforms_FE in order to use the TSFE array. Similar 
> method is added to rtehtmlarea_base and tx_rtehtmlarea_pi2 (frontend use 
> of the RTE).
> 
> Regards,
> Stanislas
> 
> 

+1 based on testing.

 From a really quick read, one question is whether we want to add an 
optional parameter for the media attribute in the link tag.  Probably 
doesn't make much since given what we do in the backend now, but its the 
only commonly used attribute that I see missing.

Thanks,
Jeff


More information about the TYPO3-team-core mailing list