[BUGFIX] RTE: Required ExtJs css files are not loaded in frontend 47/27647/2
authorStanislas Rolland <typo3@sjbr.ca>
Sun, 16 Feb 2014 23:30:15 +0000 (18:30 -0500)
committerStanislas Rolland <typo3@sjbr.ca>
Tue, 18 Feb 2014 23:59:20 +0000 (00:59 +0100)
Solution: Add ExtJs css files required by the RTE

Resolves: #56027
Releases: 6.2
Change-Id: I56c81a0119a34097aa8c4a3dd15655cb5a6ca635
Reviewed-on: https://review.typo3.org/27647
Reviewed-by: Wouter Wolters
Reviewed-by: Stanislas Rolland
Tested-by: Stanislas Rolland
typo3/sysext/rtehtmlarea/Classes/Controller/FrontendRteController.php

index 19f5482..142a058 100644 (file)
@@ -244,9 +244,6 @@ class FrontendRteController extends \TYPO3\CMS\Rtehtmlarea\RteHtmlAreaBase {
                 * =======================================
                 */
                $this->getPageRenderer();
-               // Preloading the pageStyle and including RTE skin stylesheets
-               $this->addPageStyle();
-               $this->addSkin();
                // Register RTE in JS
                $this->TCEform->additionalJS_post[] = $this->wrapCDATA($this->registerRTEinJS($this->TCEform->RTEcounter, '', '', '', $textAreaId));
                // Set the save option for the RTE:
@@ -256,9 +253,14 @@ class FrontendRteController extends \TYPO3\CMS\Rtehtmlarea\RteHtmlAreaBase {
                        $this->pageRenderer->loadExtJs();
                        $this->pageRenderer->enableExtJSQuickTips();
                }
-               $this->pageRenderer->addCssFile($this->siteURL . 'typo3/js/extjs/ux/resize.css');
                $this->pageRenderer->addJsFile($this->getFullFileName('typo3/js/extjs/ux/ext.resizable.js'));
                $this->pageRenderer->addJsFile('sysext/backend/Resources/Public/JavaScript/notifications.js');
+               // Preloading the pageStyle and including RTE skin stylesheets
+               $this->addPageStyle();
+               $this->pageRenderer->addCssFile($this->siteURL . 'typo3/contrib/extjs/resources/css/ext-all-notheme.css');
+               $this->pageRenderer->addCssFile($this->siteURL . 'typo3/sysext/t3skin/extjs/xtheme-t3skin.css');
+               $this->addSkin();
+               $this->pageRenderer->addCssFile($this->siteURL . 'typo3/js/extjs/ux/resize.css');
                // Add RTE JavaScript
                $this->addRteJsFiles($this->TCEform->RTEcounter);
                $this->pageRenderer->addJsFile($this->buildJSMainLangFile($this->TCEform->RTEcounter));