Bug #14837
closedCustom skins for HTMLArea broken.
0%
Description
Using Typo3 3.8.0 and rtehtmlarea 0.5.1
When I try and use a custom skin for HTML Area, it does not display. I am using the default skin copied to a different location.
In my page TS config I set
RTE.default.skin = fileadmin/templates/rte/htmlarea.css
I copied the entire contents of EXT:rtehtmlarea/htmlarea/skins/default/ to fileadmin/templates/rte
I traced the problem to line 23 of EXT:rtehtmlarea/htmlarea/htmlarea.js
if (typeof(_editor_edited_content_CSS) != "string") var _editor_edited_content_CSS = _typo3_host_url + _editor_skin + "htmlarea-edited-content.css";
Looking at the page source code, I find these setup variables:
var _editor_CSS = "http://www.domain.com/fileadmin/templates/rte/htmlarea.css";
var _editor_skin = "http://www.domain.com/fileadmin/templates/rte";
var _typo3_host_url = "http://www.domain.com";
Nowhere is _editor_edited_content_CSS set. So when the .js gets to line 23, it sets the variable, but adds an extra _typo3_host_url in the front. So _editor_edited_content_CSS = http://www.domain.comhttp://www.domain.com/fileadmin/templates/rte/htmlarea-edited-content.css
Removing the extra _typo_host_url from line 23 works for me both when I have a skin set or when I do not and the default skin is used. However, I do not know if this will break it in other situations.
(issue imported from #M1234)