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.

Customising the CMS /

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

tinymce config in Silverstripe 2.3.2


Go to End


3 Posts   4300 Views

Avatar
Anatol

126 Posts

8 July 2009 at 4:38pm

Edited: 08/07/2009 4:40pm

Hi,

I would like to set the tinymce config to

valid_elements: "*[ * ]"

I used to do this in /cms/javascript/tinymce.template.js and it then usually allowed HTML code that was otherwise restricted such as YouTube or Vimeo embedded videos.

I noticed that the TinyMCE config changed now with the HTMLEditorConfig class and so I tried this instead in /mysite/_config.php:

HtmlEditorConfig::get('cms')->setOption('valid_elements', '*[ * ]');

I also tried

HtmlEditorConfig::get('cms')->setOption('verify_html', 'false');

But it doesn't change. The browser cache is cleared, but something doesn't work yet, e.g. I can't add an <acronym> tag.

If anyone has an idea I would be keen to hear it.

Cheers!
Anatol

Avatar
schellmax

Community Member, 126 Posts

16 July 2009 at 3:36am

see http://open.silverstripe.com/ticket/4390

grüße aus österreich ;-)

Avatar
toarx

Community Member, 34 Posts

10 February 2012 at 1:52am

the correct URL is:
http://open.silverstripe.org/ticket/4390
Gruss aus Deutschland