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.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

General Questions /

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

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

TinyMCE and ssbuttons Silverstripe 3


Go to End


1546 Views

Avatar
BlueO

Community Member, 52 Posts

3 May 2013 at 1:31pm

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