Jump to:

17452 Posts in 4473 Topics by 1971 members


SilverStripe Forums » Archive » Config the tinyMCE?

Our old forums are still available as a read-only archive.

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

Page: 1
Go to End
Author Topic: 990 Views
  • raum18
    Community Member
    1 Post

    Config the tinyMCE? Link to this post

    i have to add some buttons to the editor tinyMCE! How can I do that - I tried this:

    --> Sam / 27 April 2008 at 10:28am / Core Development Team / Re: Customize Tiny MCE:

    1) Apply this changeset to your own copy. This will appear in the next version, so you're not distrupting upgradeability.


    2) Create MyToolbar.php. Overload any methods that you need to:

    class MyToolbar extends HtmlEditorField_Toolbar { }

    3) Add the following to _config.php:

    Object::useCustomClass("HtmlEditorField_Toolbar", "MyToolbar");

    and it works so far, but not with all button-typs.

    So i have problems with implement Forecolor, Backcolor, Selectclass drop down menu, Selectfont drop down menu, ... and so on.

    Is it possible to get an example or a patch to fix this problem?
    It is possibel to implement the full tiny-toolbar?
    In this project the use of Silverstripe stands and falls with this question!

    I hope there is a solution!

    greetings from germany - wolfgang

  • Sam
    679 Posts

    Re: Config the tinyMCE? Link to this post

    Have a look at the content of HtmlEditorField_Toolbar in HtmlEditorField.php, to see how the existing style dropdown is implemented.

    I don't know of any existing patch for this, sorry. We prefer to leave font/colour selection out of the CMS and put that information in the template.

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.