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

Martin Kutschker masi-no at spam-typo3.org
Wed Oct 22 16:23:14 CEST 2008


Stanislas Rolland schrieb:
> This is an SVN patch request.
> 
> Type: Bugfix
> 
> Bugtracker references:
> http://bugs.typo3.org/view.php?id=9613
> 
> Branches:
> 4.2 and trunk
> 
> Problem:
> JScodeLibArray was used to move some RTE style sheet inclusions to the
> head part of the document. However, the template object did not exist
> when frontend editing.
> 
> Solution:
> The attached patch adds array $additionalHeaderData to class template,
> and uses it to add the additional head section content needed by the
> RTE.

Hm, didn't we try to get rid of "magic arrays" in template.php? Do I get
it correctly that the code added to the header is dependent on some
configuration and therefore cannot be added via the library loader
mechanism?

Sidenote, I think it would make more sense to add custom code after the
libaries. So you can do something with the code that has been added. Or
do you think you'll want to set a config variable for a library
beforehand more often?

Masi


More information about the TYPO3-team-core mailing list