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?

CommentFileSizeAuthor
#2 incorrect_directories-1112666-2.patch2.21 KBAnonymous (not verified)
#1 tinybrowser_1112666_1.patch898 bytesAnonymous (not verified)

Comments

Anonymous’s picture

Version: 7.x-1.1 » 7.x-1.x-dev
Status: Active » Needs review
StatusFileSize
new898 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).

Anonymous’s picture

Title: tinyMCEPopup is not defined » Incorrect directories
StatusFileSize
new2.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!