4

I have custom Dexterity types: Folder is folderish, Article is to be addable in that folder. In addition, Article is addable by anonymous users. For quick testing, I modify the folder's Security Settings in ZMI, turning on Add portal content permission for Anonymous role.

Somehow, now that anonymous user can add Article, but TinyMCE toolbar does not show, that is working well when the login user adding Article. Seems that TinyMCE toolbar needs more settings for the anonymous user. Any hints?

TinyMCE Toolbar not Showing When Anonymous User Adding the Type

marr
  • 861
  • 4
  • 19

1 Answers1

6

It's just because tiny MCE's javascript is loaded only for authenticated users. To make it available for all, go to ZMI -> portal_javascript, search for tiny_mce, and uncheck "Restrict to authenticated users?" checkbox.

This will do the trick.

Jihaisse
  • 977
  • 5
  • 24
  • 1
    How do we do this for plone 5? – sunew Nov 12 '15 at 20:39
  • In Plone 5, `mockup-patterns-tinymce` is registered in the [++resource++plone-logged-in.js](http://demo.plone.de/++resource++plone-logged-in.js) resource from `plone-logged-in` bundle. If you move it to the `plone` bundle, that is, the [++resource++plone.js](http://demo.plone.de/++resource++plone.js), you'll get it. Alternatively you can register `mockup-patterns-tinymce` resource into your package bundle or insert it on a per template base with [add_resource_on_request()](http://docs.plone.org/adapt-and-extend/theming/resourceregistry.html#controlling-resource-and-bundle-rendering). – Davi Lima Aug 03 '16 at 07:50