Issue Bug Closed

#32625Custom RTE-styles broken

Stefan Neufeind 12/16/11, 14:37 updated 10/24/17, 20:19

Description

Fix for #29899 broke custom HTML-styles.

Check for
file_exists(PATH_site . $fileName)
results in paths like:
/var/www/html/../fileadmin/rte.css

(which is one ../ too deep)

That path is because of the fact it was created to be used for /typo3/alt_doc.php to find it’s CSS with relative URLs.

This is broken in the latest release of 4.5.9, 4.6.2 and master.

How to test:
  • Create a fileadmin/rte.css
  • Add page-TS: RTE.default.contentCSS = fileadmin/rte.css
  • Try editing content in RTE -> falls back to default.css

Reviews 1