8

I'm having some issues with TinyMCE, which is causing the editor not to work on CMS pages and causes products not to load when attempting to edit them.

When these issues are happening, I see this in the console: [url]/static/adminhtml/Magento/backend/en_US/tinymce.js net::ERR_ABORTED 404

and require.js:166 Uncaught Error: Script error for: tinymce

Note: if I look into /static/adminhtml/Magento/backend/en_US folder, I can confirm that tinymce.js is not there, but there's a en_US/tiny_mce_4 folder with tinymce.min.js in it.

Anyone know what's going on?

Edit: one infuriating thing is that, for some reason, everything is working on my development environment. I rsynced the public_html folder from dev to prod, dumped/imported its database, and still the issue persists. So weird!

1

In my case, there was some additional cache clearing that needed to be performed. I had flushed redis and magento, but for anyone on MageMojo this is the command that fixed it:

/usr/share/stratus/cli cache.all.clear

  • how and where to run this commands ? – sumeet bajaj May 1 at 12:29
  • I am having the same error for Magento 2.3 so what should I do?. because it doesn't work after clearing cache – sourabh yadav May 1 at 13:42
  • Need to execute this command from public_html? – Nagaraju K May 28 at 19:33
  • Sorry, I'm not sure what would work for your specific circumstances, but I'd look for non-Magento caches to clear (like redis above). I ran this from public_html yes @NagarajuKasa – brackfost May 28 at 19:34
0

I have just updated my module https://github.com/pavelleonidov/magento2-tinymce4 which also fixes the issue in production context. Feel free to check it out. :)

Best regards,

Pavel

  • this is not working for me... – Navin Bhudiya Aug 14 at 8:45

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.