TinyMCE Rich Text Editor Bug? Doesn't like the word "from"

Summary

Recently updated TinyMCE Rich Text Editor to version 3.1.6 and Modx will not save the resource if it has the word “from” in the content area.

Step to reproduce

When I try to save a new or old resource in Modx in the content area with the word “from,” it hangs and will not save.

Observed behavior

  • It includes when the word is in another word
  • Only solution has been to use “f rom” instead of “from”
  • Tried installing older versions, but the plugin wouldn’t load at all

Expected behavior

It should save as normal instead of hang.

Environment

Using Modx Revolution 2.84 pl

To me, this sounds more like a Firewall on the server is blocking the request (to save the resource) and not like a problem with TinyMCE RTE.

So if you open the developer tools in the browser (and go to the “Network” tab) and then try to save the resource (with “from” in the content), what is the actual response (and the HTTP response status code) for the request that gets generated?

I’m pretty sure it’s not a firewall issue causing it to hang/timeout when trying to save resources with “from” in it.

I’m getting a lot of 404 errors for the plugin’s JavaScript file, so I’m wondering if the install isn’t installing everything.

Outside of using the Installer/Package Manager, are there extra steps to updating the plugin?

No. But it could be that something went wrong during the installation.
Maybe try to completely uninstall/remove the TinyMCE RTE plugin and then reinstall it.

What exact file isn’t found? Maybe it’s the one from a previous version?
If there is a problem with the JS file, then you shouldn’t be able to see the TinyMCE interface at all in the content area.

I inherited this setup, so I’m not sure what plugins were used before, but I’m getting 404s for the following:

assets/components/tinymcerte/mgr/tinymce/plugins/hr/plugin.min.js

/assets/components/tinymcerte/mgr/tinymce/plugins/download/plugin.min.js

assets/components/tinymcerte/mgr/tinymce/plugins/spellchecker/plugin.min.js

I’ve tried reinstalation/remove/reinstall of TinyMCE RTE and still have the issue.

Thanks for your help so far.

So these 3 TinyMCE plugins (“hr”, “download” and “spellchecker”) don’t exist on my system as well (with TinyMCE RTE 3.1.6-pl installed). But the code doesn’t try to load them, when I test it.
Maybe these plugins got added to the tinymcerte.plugins system setting (or to the external config file, if you use one → system setting tinymcerte.external_config). So maybe you have to remove these plugins from the setting or manually install them, to get rid of the errors.


All in all, I don’t think the reason for the problem (with the resource not saving) are these missing TinyMCE plugins.
When MODX “hangs” (after saving a resource), it’s usually that the request (with the resource form data to store) doesn’t return the expected JSON data. So either a PHP error occurs on the server, or a firewall just blocks the request. As the problem is quite random (the word “from” triggering it), it suspect a firewall interfering.

It’s unlikely, but possible, that this is a mod_security issue, though it would be a weird one. Maybe the mod_security rules got updated around the time you updated TinyMCE and someone mistyped one of them. I once saw a case where mod_security wouldn’t let a user save anything with the word “casino” in the text.

If you disable rich text or the plugin and the problem goes away, it’s definitely a TinyMCE problem and not mod_security.