Bug #20712
closedPopup dialogs are not styled in v1.7.9, FF3.0.11, TYPO3-4.2.6. Wrong values in line 3520
0%
Description
When I hit the "generate table" button the appearing popup dialog window isn't styled because the href attribute of the link tag is wron. Thus the CSS file isn't found. This doesn't prevent functioning but is dead ugly and a real usability minus.
I've figured out where and how it goes wrong but don't know how to fix it. Here is the original code. I only added explicating comment:
/**
* Load the stylesheets in the dialog window
*
* @return void
*/
loadStyle : function () {
var head = this.dialogWindow.document.getElementsByTagName("head")[0];
var link = this.dialogWindow.document.createElement("link");
link.rel = "stylesheet";
link.type = "text/css";
link.href = HTMLArea.editorCSS;
//
// mb, 2009-07-03, Problem with FF 3.0.11, TYPO3-4.2.6, rtehtmlarea-1.7.9
// This is file: typo3_src-4.2.6/typo3/sysext/rtehtmlarea/htmlarea/htmlarea.js
// Install dir is http://www.myserver.local/CUSTOMER/
//
// at this point in JS this is what happens when I've clicked the "generate table" button:
// link.href is: "chrome://browser/CUSTOMER/typo3/sysext/t3skin/rtehtmlarea/htmlarea.css"
// _typo3_host_url is: "http://www.myserver.local"
if (link.href.indexOf("http") == -1 && HTMLArea.is_gecko) link.href = _typo3_host_url + link.href; // this is originally line 3520
// now link.href is: "http://www.myserver.localchrome//browser/CUSTOMER/typo3/sysext/t3skin/rtehtmlarea/htmlarea.css"
// which is wrong and doesn't work.
head.appendChild(link);
},
The patch I've added doesn't fix anything but only adds these comments.
(issue imported from #M11466)
Files