Jump to:

23002 Posts in 11855 Topics by 2828 members

General Questions

SilverStripe Forums » General Questions » TinyMCE and ssbuttons Silverstripe 3

General questions about getting started with SilverStripe that don't fit in any of the categories above.

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

Page: 1
Go to End
Author Topic: 263 Views
  • BlueO
    Avatar
    Community Member
    52 Posts

    TinyMCE and ssbuttons Silverstripe 3 Link to this post

    Hi There,

    I'm trying to get the ssbuttons plugin going for a front-end form using the HtmlEditor field. I've got the following in my field setup:

    HtmlEditorConfig::get('reduced')->enablePlugins(array('ssbuttons' => '/framework/thirdparty/tinymce_ssbuttons/editor_plugin_src.js'));
    HtmlEditorConfig::get('reduced')->setButtonsForLine(1, 'sslink', 'unlink');
    HtmlEditorConfig::set_active('reduced');

    which gets me a nice link button button but on pressing it I get this in my chrome console:

    Uncaught TypeError: Object #<jQuerySub> has no method 'openLinkDialog'

    Are there other bits I need to included to get ssbuttons working?

    cheers

    b

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