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 #1

Updated by Stanislas Rolland almost 15 years ago

Do you also encounter such issue in TYPO3 4.3?

Actions #2

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...

Actions #3

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?

Actions #4

Updated by Stanislas Rolland about 14 years ago

No feedback.

Have to assume that this was fixed in TYPO3 4.3.

Actions

Also available in: Atom PDF