[Fixed] TinyMCEWrapper 2.3.4-pl Broken File Browser

Summary

On MODX3 - 3.1.1 the image browse button in TinyMCE has suddenly broken

Step to reproduce

Try to insert an image using TinyMCE, the browser window does not open.

Observed behavior

You can see here the line causing the problem, it’s when the URL parameter is formed to be sent to the function to open the browser window. It’s unclear to me how long this has been a problem as the site isn’t updated frequently with images.

Expected behavior

I guess the MODx.action[“browser”] variable has not been set.

Environment

MODX 3 - 3.1.1 NGINX, MySQL 8.x - latest Chrome Firefox.

So I guess the question here is where does MODx.action[“browser”] get set. Do I have a missing system setting?

In MODX 3, modAction was removed and MODx.action isn’t set anymore.
See the documentation here.


The extra TinymceWrapper hasn’t been updated in a while. And I think it still uses TinyMCE 4 which is also no longer supported.

You should use an alternative extra that is actively maintained. Like for example TinyMCE Rich Text Editor.

Thanks.

I found that in the old request class an array of old actions was set, among them ‘browser’. Hadn’t noticed the problem this posed for TinyMCEWrapper until now.

I’ll check out that addon and see how we go.