Hi all
I want to change to TinyMCE editor and have my own set of buttons. I got everything working but some SS buttons won't display.
HtmlEditorConfig::get('cms')->setButtonsForLine(1,array(
'undo','redo','separator','bold','italic','separator','bullist','numlist','separator',
'justifyleft','justifycenter','justifyright',
'sslink','unlink','anchor','ssimage',
'styleselect','formatselect','cleanup', 'removeformat',
'attribs', 'template', 'preview','spellcheker','hr','separator','code'
));
I tried some other variations like this one https://stojg.se/blog/2013-03-29-customize-tinymce-for-silverstripe-cms
But I don't get the ssimage to display in the editor. Some other buttons (e.g. spellcheck) won't work either. They are display in the second line, if I don't write …
HtmlEditorConfig::get('cms')->setButtonsForLine(2,array());
What do I have to do to get this working? I want all my buttons in just one row.
Hope someone can help! Thanks!!