Project

General

Profile

Actions

Bug #21816

closed

Stylesheets missing when TSFE object is generated in BE

Added by Michel Nederlof almost 15 years ago. Updated about 14 years ago.

Status:
Closed
Priority:
Should have
Category:
-
Target version:
-
Start date:
2009-12-07
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:

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)


Related issues 1 (0 open1 closed)

Has duplicate TYPO3 Core - Bug #23672: htmlArea RTE: Insufficient Check for BE / FE ContextClosedStanislas Rolland2010-10-04

Actions
Actions

Also available in: Atom PDF