Bug #24013
closed
htmlArea RTE: JS-Error when closing "Insert Picture" dialogue
Added by Chris topher about 14 years ago.
Updated over 13 years ago.
Description
I experience the following problem with current trunk:
I open the dialogue "Insert picture". When I insert an image or just click on the close button, I get these errors:
Error: Ext.elCache is undefined
File: typo3temp/compressor/ext-base-288ac3dcc6ee5e4e6c41e219f62fe4b0.js
Line: 4406
This is around the 30th line in function getId(el){
...
if(!Ext.elCache[id]){
...
Error: e._flyweights is undefined
File: typo3temp/compressor/ext-all-c70aa5004c11e1e7a4794fb772b2cf25.js
Line: 1893
That is in El.fly = function(el, named){
...
(El._flyweights[named] = El._flyweights[named] || new El.Flyweight()).dom = el;
...
(issue imported from #M16343)
Files
I just saw that I also get a PHP error:
Core: Error handler (FE): PHP Warning: Invalid argument supplied for foreach() in \typo3conf\temp_CACHED_FE_pr5bb5_ext_tables.php line 1429
Line 1429 comes from rtehtmlarea/ext_tables.php and is there line 27:
foreach ($TYPO3_CONF_VARS['EXTCONF'][$_EXTKEY]['plugins'] as $pluginName => $config) {
I wonder why I can't reproduce this error...
Did you clear the configuration cache?
OK, yes, I see the error...
I am not sure that the php error is related, is it?
Both crept up at the same time. I don't know, if both are related, but I did not want to hold back some information which might be important.
If you can fix the JS error, I will check, if the PHP error still is there.
Fabrizio Branca reported the PHP error in #16347.
He also provided a patch there and posted it on Core List.
ExtJS is trying to remove from cache an event listener on Ext.Element of dialogue window iframe document and fails.
Set the event on the htmlElement using Ext.EventManager.
Also, for WebKit, dragend listener should be on body rather than documentElement.
Committed to SVN TYPO3core trunk (revision 9490).
- Target version deleted (
4.5.0)
Also available in: Atom
PDF