Bug #56408
closedQuickedit mode - RTE has no user CSS
Added by d.ros no-lastname-given over 10 years ago. Updated about 6 years ago.
100%
Description
In normal page "columns" module the RTE respects the user CSS included with RTE.default.contentCSS.
In page "quickmode" this css is not included.
IMHO the CSS should always be included to have a consistent UX.
Only tested in 6.1.7 - dunno if this also fails in 6.2.x
Updated by d.ros no-lastname-given over 10 years ago
- Target version set to next-patchlevel
Found the cause
ONLY IN QUICKEDIT MODE the path is wrong
PHP Warning: file_exists(): open_basedir restriction in effect. File(/var/www/fileadmin/path/to/the/file/in/USER_RTE_MASTER.css) is not within the allowed path(s):
The path must be
/var/www*/user/html/*fileadmin/path/to/the/file/in/USER_RTE_MASTER.css
There must be a bogus in the quickedit script.
Updated by Stanislas Rolland over 10 years ago
This issue does not seem be exist in TYPO3 6.2.
Where is the warning raised?
Updated by Falk Gebauer over 10 years ago
This issue also exists in 6.2 incl. 6.2.4.
The warning is raised if you have e.g. set open_basedir restrictions, the RTE.default.contentCSS and enter the QuickEdit mode in the Page module.
PHP Warning PHP Warning: file_exists(): open_basedir restriction in effect. File(/var/typo3conf/ext/xxx/Resources/Public/StyleSheet/Rte.css) is not within the allowed path(s): (/var/www/xxxxx/web:/var/www/xxxxx/tmp:/usr/share/php5:/tmp) in /var/www/xxxxx/web/TYPO3.CMS/typo3/sysext/rtehtmlarea/Classes/RteHtmlAreaBase.php line 534
In RteHtmlAreaBase::getContentCssFileName the absolute path to the css file is miscalculated if QuickEdit mode is choosen.
Maybe changing
if ($fileName) { $fileName = $this->getFullFileName($fileName); } $absolutePath = $fileName ? GeneralUtility::resolveBackPath(PATH_site . ($this->is_FE() || $this->isFrontendEditActive() ? '' : TYPO3_mainDir) . $fileName) : '';
to
$absolutePath = $fileName ? GeneralUtility::getFileAbsFileName($fileName) : ''; if ($fileName) { $fileName = $this->getFullFileName($fileName); }
will solve this.
Updated by Gerrit Code Review about 10 years ago
- Status changed from New to Under Review
Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/33568
Updated by Gerrit Code Review about 10 years ago
Patch set 1 for branch TYPO3_6-2 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/33569
Updated by Stanislas Rolland about 10 years ago
- Assignee set to Stanislas Rolland
Please test this change: https://review.typo3.org/#/c/33569/
Updated by Gerrit Code Review about 10 years ago
Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/33568
Updated by Gerrit Code Review about 10 years ago
Patch set 2 for branch TYPO3_6-2 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/33569
Updated by Gerrit Code Review about 10 years ago
Patch set 3 for branch TYPO3_6-2 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/33569
Updated by Gerrit Code Review about 10 years ago
Patch set 3 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/33568
Updated by Gerrit Code Review about 10 years ago
Patch set 4 for branch TYPO3_6-2 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/33569
Updated by Stanislas Rolland about 10 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset 1ae80948b2834dc67d4add2b6061e1811a351fa7.
Updated by Stanislas Rolland about 10 years ago
- Status changed from Resolved to New
Updated by Gerrit Code Review about 10 years ago
- Status changed from New to Under Review
Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/33821
Updated by Stanislas Rolland about 10 years ago
- Status changed from Under Review to Resolved
Applied in changeset 9cb2ca223b36ef91fa91b3f3c770ba574f649962.
Updated by Gerrit Code Review about 10 years ago
- Status changed from Resolved to Under Review
Patch set 1 for branch TYPO3_6-2 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/33823
Updated by Gerrit Code Review about 10 years ago
Patch set 2 for branch TYPO3_6-2 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/33823
Updated by Stanislas Rolland about 10 years ago
- Status changed from Under Review to Resolved
Applied in changeset ea485fbe83f57267266538e589ae4e632c6db2d5.