Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

Customising the CMS /

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba

TinyMCE buttons - SS buttons won't display


Go to End
Reply


2 Posts   522 Views

Avatar
suntrop

Community Member, 136 Posts

20 May 2013 at 5:13am

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!!

Avatar
suntrop

Community Member, 136 Posts

20 May 2013 at 9:15pm

Edited: 20/05/2013 9:15pm

Got it working … ssimage seems to be another (old?) version. You have to use ssmedia instead.