Issue Bug Closed

#41063RTE: TYPO3 4.7.4 RTE doesn't load in FE because of "console" in appendToLog

Sven Juergens 09/19/12, 12:13 updated 09/20/12, 22:48

Description

Hi,

With TYPO3 4.7.4 the RTE doesn’t load in IE 7,8,9 in “Frontend Edit”.

Steps to reproduce

- download IntrodutionPackage 4.7.4 and install
- in ExtManager install feedit
- set config.admPanel = 1 in MainTemplate at root
- open in a site and activate in AdminPanel “Display edit panels” and “Display edit icons“
- edit an text Element with IE

IE9 is only showing the loading screen of RTE but no Information of an error, use IE8 to get a Error Message: “Object expected at line 865”

This is in htdocs/intro474/typo3/sysext/rtehtmlarea/htmlareahtmlarea.js the function

appendToLog: function (editorId, objectName, functionName, text, type) {
var str = ‘RTE[’ + editorId + ‘][’ + objectName + ‘::’ + functionName + ‘]: ‘ + text;
if (typeof(type) = 'undefined') {
var type = 'info';
}
if (typeof(console) ! ‘undefined’ && typeof(console) = 'object') {
// If console is TYPO3.Backend.DebugConsole, write only error messages
if (Ext.isFunction(console.addTab)) {
if (type = ‘error’) {
console[type](str);
}
} else {
——-> this is line 865 console[type](str);
}
}
}

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.