Issue Bug Closed

#21816Stylesheets missing when TSFE object is generated in BE

Michel Nederlof 12/07/09, 12:03 updated 10/22/10, 23:15

Description

If some extension creates the TSFE object in the BE (in our case this was done in a postProcessDatamap (tcemain hook)), then the styles are added to the TSFE and not the tcemain.

This was a bug in TYPO3 v4.2.10, checked out from this svn location:
https://svn.typo3.org/TYPO3v4/Core/tags/TYPO3_4-2-10

Now this is fixed by changing the following:

—- typo3/sysext/rtehtmlarea/class.tx_rtehtmlarea_base.php (revision 6623)
+++ typo3/sysext/rtehtmlarea/class.tx_rtehtmlarea_base.php (working copy)

-380,7 +380,7 * ===================================
*/
// Preloading the pageStyle and including RTE skin stylesheets
- if (is_object($GLOBALS[‘TSFE’])) {
+ if (is_object($GLOBALS[‘TSFE’]) && TYPO3_MODE == ‘FE’) {
// Frontend editing
$GLOBALS[‘TSFE’]->additionalHeaderData[‘rtehtmlarea-contentCSS’] = $this->getPageStyle();
$GLOBALS[‘TSFE’]->additionalHeaderData[‘rtehtmlarea-skin’] = $this->getSkin();

(issue imported from #M12963)

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.