TinyMCE menubar settings not working (6.1.1)

I don't know how much this is all related, but something seems to be not working with TinyMCE configs in 6.1 with the menubar/menu settings and plugins. On a new 6.1.1 classic site, "File" is put in the menubar and "Help" appears whether or not I have put it in the menubar (and regardless of whether that plugin is enabled), as an example.

The browser console shows a 404 on http://localhost:8080/tiny/++webresource++fb6bacd1-6e74-5dbd-9a1c-cd24242efc19/++plone++static/bundle-plone/chunks/plugins/help/js/i18n/keynav/en.js. It shows this regardless of whether the Help plugin is selected. As you might expect, the Help option does not work.

https://classic.demo.plone.org/ seems to have this partially fixed (what would be different here from a vanilla 6.1.1 install?). The menubar config option appears to be working. However, the help plugin does not actually work and I get a 404 error like above. I also tried enabling the emoticons plugin and get a console log (no error) that https://classic.demo.plone.org/++webresource++9a2e8cf6-240c-5fb7-8db7-2fc26af47b21/++plone++static/bundle-plone/chunks/plugins/emoticons/js/emojis.min.js did not load.

Possible related ro this: TinyMCE menu configuration does not work · Issue #379 · plone/plone.staticresources · GitHub

Do you know why the classic demo has a working menubar (Help and other plugins still broken) but, as far as I can tell, not a new default Plone 6.1.1 site? Has the demo site diverged from https://dist.plone.org/release/6.1.1/constraints.txt in some way? I thought that might offer a clue.

Do they have the same Control Panel and Registry settings?

Looks like it to me. Regardless, I need this to work before we can move our sites to 6.1. Any ideas for a workaround? If there's a change I can make on the python end to modify what is sent to pat-tinymce that would be nice, but if it's a problem with pat-tinymce I imagine there is not an easy workaround...

It's a problem in pat-tinymce. i have locally here a patch and would make a PR in mockup. but the mockup heros @petschki or @thet must review my attempt

1 Like

@Esoth I'm wondering. I've just created a new 6.1.1 Site and there is No "File" and "Help" activated for me OOTB. There's the list of activated default plugins: plone.base/src/plone/base/interfaces/controlpanel.py at main · plone/plone.base · GitHub and the menubar plone.base/src/plone/base/interfaces/controlpanel.py at main · plone/plone.base · GitHub ... I've noticed that the "Tools" dropdown does not appear, because none of the configured plugins here plone.base/src/plone/base/interfaces/controlpanel.py at main · plone/plone.base · GitHub is activated (and spellcheck doesn't exists since 6.1.0 at all ... need to cleanup this)

Besides that - when I activate the help plugin I also get your JS error and I'll take a look at @1letter s fix today.

Thanks for looking into this this @petschki. I tested OOTB sites on two different computers, in different OS, with barebones uv pip install, and with cookieplone - and got the same behavior where it didn't respect the menubar. I don't know why you got different, but it's probably moot because the 6.1.2 release seems to fix it. Now that that version is out, we should be able to just upgrade to that and leave this mystery as purely academic.

Also thanks for looking into the Help plugin.

I've released a fix for this issue in plone.staticresources 2.3.1 Client Challenge