Jump to:

1160 Posts in 2621 Topics by 409 members

Upgrading SilverStripe

SilverStripe Forums » Upgrading SilverStripe » No link/image buttons in tinymce in SS2.3.3

Ask questions about upgrading SilverStripe to the latest version.

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

Page: 1
Go to End
Author Topic: 2038 Views
  • NickJacobs
    Avatar
    Community Member
    144 Posts

    No link/image buttons in tinymce in SS2.3.3 Link to this post

    Ok, so it seems the link and image buttons (and a few others) have moved from the toolbar to a right click context menu in the latest version of SS. This is great for windows users, but a pain in the butt for Mac users....especially those who don't have new 2 button mice.....

    How can I reinstate the buttons to the tinymce toolbar???

  • banal
    Avatar
    Community Member
    901 Posts

    Re: No link/image buttons in tinymce in SS2.3.3 Link to this post

    Hi
    You can customize the TinyMCE buttons using the HtmlEditorConfig class. To add image and link buttons, add the following to mysite/_config.php

    HtmlEditorConfig::get('cms')->addButtonsToLine(1, 'ssimage', 'sslink', 'unlink');

    You can also completely customize the buttons in the editor, by using ->setButtonsForLine( <lineNr>, <buttonA>, <buttonB>, ...);. For more information, I suggest you have a look at the HtmlEditorConfig class (sapphire/forms/HtmlEditorConfig.php)

    An overview of the available TinyMCE controls can be found here: http://wiki.moxiecode.com/index.php/TinyMCE:Control_reference
    Above I added 'ssimage' and 'sslink' (instead of 'image' and 'link') which are SilverStripe specific extensions. Sadly, I don't know where and if these are documented.

    2038 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.