Project

General

Profile

Actions

Bug #19490

closed

RTE uses JScodeLibArray to insert CSS

Added by Jeff Segars about 16 years ago. Updated about 6 years ago.

Status:
Closed
Priority:
Must have
Category:
-
Target version:
-
Start date:
2008-10-21
Due date:
% Done:

0%

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

Description

In tx_rtehtmlarea_base, the RTE uses $GLOBALS['SOBE']->doc->JScodeLibArray to insert CSS into the page header. This was added in revision 4298.

When using edit forms on the page in frontend editing, we don't have a true doc template and are just going through TCEForms instead. This means that adding Javascript (or CSS) through JScodeLibArray has no effect.

In bug #19485, Olly added a separate loadJavascriptLib() method for frontend editing that inserts the Javascript libraries into TSFE but that won't be the correct solution for CSS files. I'd suggest falling back to $this->TCEform->additionalCode_pre as it was in the past or adding a generic loader into TCEForms.

I'm attaching a patch that uses $this->TCEform->additionalCode_pre and works correctly in my testing in both the frontend and backend (I am seeing problems with the RTE in IRRE child records but that seems to occur with and without my patch).

(issue imported from #M9613)


Files

009613.diff (1.01 KB) 009613.diff Administrator Admin, 2008-10-21 16:26
rtehtmlarea_bugfix_9613_typo3_4-2.patch (2.4 KB) rtehtmlarea_bugfix_9613_typo3_4-2.patch Administrator Admin, 2008-10-22 07:08
rtehtmlarea_bugfix_9613_trunk_v3.patch (9.93 KB) rtehtmlarea_bugfix_9613_trunk_v3.patch Administrator Admin, 2008-10-23 17:46

Related issues 3 (0 open3 closed)

Related to TYPO3 Core - Bug #19435: htmlARea RTE: Move link tags to headClosedStanislas Rolland2008-10-08

Actions
Related to TYPO3 Core - Feature #19208: Additional Stylesheets in template.phpClosedChristian Kuhn2008-08-10

Actions
Related to TYPO3 Core - Bug #22330: Remove unused property $additionalStyleSheets in template.phpClosedFrancois Suter2010-03-26

Actions
Actions

Also available in: Atom PDF