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.

General Questions

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

TinyMCE and ssbuttons Silverstripe 3


Reply

352 Views

Avatar
BlueO

3 May 2013 at 1:31pm Community Member, 52 Posts

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