Project

General

Profile

Actions

Bug #14837

closed

Custom skins for HTMLArea broken.

Added by Dennis S over 19 years ago. Updated over 18 years ago.

Status:
Closed
Priority:
Should have
Category:
RTE (rtehtmlarea + ckeditor)
Target version:
-
Start date:
2005-06-23
Due date:
% Done:

0%

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

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)

Actions #1

Updated by Stanislas Rolland over 19 years ago

Will be corrected in the next version of htmlArea RTE.

Actions #2

Updated by Stanislas Rolland over 19 years ago

Corrected in version 0.5.4 of htmlArea RTE.

Actions

Also available in: Atom PDF