Jump to:

5541 Posts in 1738 Topics by 1224 members

Customising the CMS

SilverStripe Forums » Customising the CMS » TinyMCE SSLink does not work in reduced config.

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

Page: 1
Go to End
Author Topic: 671 Views
  • dacar
    Avatar
    Community Member
    168 Posts

    TinyMCE SSLink does not work in reduced config. Link to this post

    Hi, i am trying to configure the TinyMCE Editor. But if i use the "sslink" button, i will get an javascript error:

    An error occurred. Please try again, or reload the CMS if the problem persits.
    Error details: Result of expression 'undefined' is not a function.

    The anchor is insert after the prompt and the code looks like this: <a href="javascript:mctmp(0);">Hauses</a>

    Can anybody help?

    HtmlEditorConfig::get('reduced')->setOptions(array(
       'friendly_name' => 'reduced',
       'priority' => '50',
       'mode' => 'none',
       'language' => i18n::get_tinymce_lang(),
       'content_css' => '../themes/xyz/css/editor.css',
       'body_class' => 'mceContentBody'
    ));
    HtmlEditorConfig::get('reduced')->enablePlugins(array('ssbuttons' => '../../../cms/javascript/tinymce_ssbuttons/editor_plugin_src.js'));

    HtmlEditorConfig::get('reduced')->disablePlugins('table');
    HtmlEditorConfig::get('reduced')->setButtonsForLine(1,
                               'save','bold','separator',
                               'cut','copy','paste','pastetext','pasteword','separator','bullist','numlist','separator',
                               'sslink','unlink','anchor','separator',
                               'cleanup','removeformat','separator',
                               'charmap'
    );
    HtmlEditorConfig::get('reduced')->setButtonsForLine(2);
    HtmlEditorConfig::get('reduced')->setButtonsForLine(3);

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