Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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)
Comment | File | Size | Author |
---|---|---|---|
imageinsert_not_words.patch | 1.8 KB | sinasalek |
Comments
Comment #1
hutch CreditAttribution: hutch commentedThank 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
Comment #2
hutch CreditAttribution: hutch commented