Jump to:

17452 Posts in 4473 Topics by 1971 members

Archive

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: 962 Views
  • raum18
    Avatar
    Community Member
    1 Post

    Config the tinyMCE? Link to this post

    Hello,
    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.

    http://open.silverstripe.com/changeset/53459/modules/cms/trunk/code/LeftAndMain.php

    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
    Avatar
    Administrator
    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.

    962 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.