#21816Stylesheets missing when TSFE object is generated in BE
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.