Bug #21816
closedStylesheets missing when TSFE object is generated in BE
0%
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)
Updated by Stanislas Rolland almost 15 years ago
Do you also encounter such issue in TYPO3 4.3?
Updated by Michel Nederlof almost 15 years ago
If i compare the code in TYPO3 4.3 it seems it is not there. Also the condition if the TSFE is loaded, is not present.
Cannot tell if this has to do due to simultanious development of 4.2 and 4.3 or if this is another solution...
Updated by Stanislas Rolland over 14 years ago
The approach has changed between the two releases. The question is: is this still an issue in TYPO3 4.3?
Updated by Stanislas Rolland about 14 years ago
No feedback.
Have to assume that this was fixed in TYPO3 4.3.