Bug #16692

htmlArea RTE conflicts on using prototyped Array objects (e.g. Prototype JavaScript framework)

Added by Oliver Hader over 14 years ago. Updated about 14 years ago.

Should have
Target version:
Start date:
Due date:
% Done:


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


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)

Related issues

Related to TYPO3 Core - Bug #16868: each is not definedClosedOliver Hader2007-01-20


Updated by Oliver Hader over 14 years ago

Fixed in SVN Trunk (rev. 1809)

Also available in: Atom PDF