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

Adding onlick attribute for TinyMCE


Reply


620 Views

Avatar
TotalNet

Community Member, 181 Posts

8 July 2009 at 1:47pm

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

Cheers,

Rich