Bug #16692
closedhtmlArea RTE conflicts on using prototyped Array objects (e.g. Prototype JavaScript framework)
0%
Description
TYPO3 Ver. 4.1-dev
In htmlarea.js there are some lines of code, that walk through an array like this:
for (var plugin in RTE["plugin"])
But some of these class variables (RTE['plugin'] is one of them) are defined as "Array", not as "Object". So, if the code from above walks through RTE['plugin'] it also processes prototyped variables, that are not really part of the JavaScript array and throws a JavaScript exception in the browser.
Solution: Change "new Array()" for usage on associative array to "new Object()".
See my experimental changeset at http://svn.t3.digitaldistrict.de/cgi-bin/trac.cgi/changeset/5716
The Inline Relational Record Editing Project uses prototype.js to handle AJAX calls and to do some DOM-stuff. On using the htmlArea RTE together with Inline Relational Record Editing, the mentioned errors occur.
see http://wiki.typo3.org/index.php/Inline_Relational_Record_Editing
(issue imported from #M4469)