Jump to:

23552 Posts in 19349 Topics by 2891 members

General Questions

SilverStripe Forums » General Questions » Adding onlick attribute for TinyMCE

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: 575 Views
  • TotalNet
    Community Member
    181 Posts

    Adding onlick attribute for TinyMCE Link to this post

    So, I've figured out where the config for tinyMCE is in 2.3.2 and see that iframe has been added as standard, thank you.

    Now I would like to add support for the onclick attribute, specifically for the <li> tag so have put this in mysite/_config.php

    HtmlEditorConfig::get('cms')->setOptions(array('extended_valid_elements' => 'li[style|id|onclick|title|class]'));

    but this doesn't seem to work. Am I on the right lines? I'd rather not edit LeftAndMain.php



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.