For some strange reason my imagepicker stopped working, i was no longer able to use image insert button to insert images. I read the source code and after some testing i found the problem.
The code win = top; does not work properly, it points to the parent document but it has no reference to its elements! i replaced it with win=window.parent; and it fixed.
Where this top variable declared i couldn't find anywhere? is it javascript global variable ?

I attached the patch (tested in IE8 and Firefox 3.6)

CommentFileSizeAuthor
imageinsert_not_words.patch1.8 KBsinasalek
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

hutch’s picture

Thank you for the patch, I have tested it in 5.x and 6.x and it works or at least does not interfere with the existing method.
I'm not sure what exactly 'top ' is, presumably it is a global variable. All I know is that it works for me.
I will add the window.parent method to dev versions shortly

hutch’s picture

Status: Active » Closed (fixed)