I would like to enable a custom TinyMCE plugin / button that is restricted to one module. The documentation , http://doc.silverstripe.org/htmleditorconfig, indicates that this is possible by adding the following to your config
HtmlEditorConfig::get('cms')->enablePlugins('../../tinymce_ssmacron'); // enables plugin
HtmlEditorConfig::get('cms')->insertButtonsAfter('charmap', 'ssmacron');
or by adding to getCMSFields() in your page.
I have tried adding to the module page's getCMSFields() and the module's config with no success. However, it does work if added to the mysite config but, of course, the button then appears on all CMS pages.
Has anyone else done this and, if so, would you be able to let me know what the pitfalls maybe.
Comments on the documentation indicate that it may only work on /mysite/_config.php for some functions.