Adding a tinymce plugin in my plone addon

I want to provide a tinymce plugin within my plone addon (Plone 5). I think the already registered directory "theme" should be a practical place. There I add a folder tinymce-plugins and put my plugin there. In the configuration of the TinyMCE I add a line in the field for custom plugins:

breakoutspace|++theme++mytheme/tinymce-plugins/breakoutspace.js

Unfortunately the location is resolved as

http://localhost:8080/Plone/++plone++static/components/tinymce-builded/js/tinymce/++theme++mytheme/tinymce-plugins/breakoutspace.js

instead of

http://localhost:8080/Plone/++theme++mytheme/tinymce-plugins/breakoutspace.js

What is the right place to add the plugin and how do I address it in the TinyMCE configuration.

1 Like