I get this JS error when trying to select an image in the browser: "tinyMCEPopup is not defined".

The browser works, except that when you click on an image, nothing happens. I imagine it should close the browser window and send the image URL to the TinyMCE Image window so you can then insert it into the WYSIWYG editor.

Any ideas?

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

BWPanda’s picture

Version: 7.x-1.1 » 7.x-1.x-dev
Status: Active » Needs review
FileSize
898 bytes

Ok, I think I found the issue - the paths to the TinyMCE root weren't correct.

I've fixed it and attached the patch. Works for me (clicking on images now sends the URL to the TinyMCE window).

BWPanda’s picture

Title: tinyMCEPopup is not defined » Incorrect directories
FileSize
2.21 KB

I have TinyBrowser installed at /sites/example.com/modules/[custom_dir_1]/[custom_dir_2]/tinybrowser/. TinyBrowser doesn't allow for that directory structure however, so I've written a patch that allows for practically any directory structure possible (up to 10 sub-directories).
EDIT: I was getting the error: Error: TinyBrowser module failed. Please refer to the README.txt.

I've also updated the patch from #1 and merged it in with these changes as it also relates to incorrect directories.

Please test and let's get this committed!