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.
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?
Comment | File | Size | Author |
---|---|---|---|
#2 | incorrect_directories-1112666-2.patch | 2.21 KB | BWPanda |
#1 | tinybrowser_1112666_1.patch | 898 bytes | BWPanda |
Comments
Comment #1
BWPanda CreditAttribution: BWPanda commentedOk, 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).
Comment #2
BWPanda CreditAttribution: BWPanda commentedI 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!