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

Disable html filtering


Reply

4 Posts   934 Views

Avatar
jonathan323

19 February 2010 at 6:59am Community Member, 2 Posts

Every time I try to enter my own html it gets filtered out. Is there any way to disable this?

Avatar
Willr

19 February 2010 at 9:05am Forum Moderator, 5511 Posts

I think you can disable it fully via verify_html - http://doc.silverstripe.org/doku.php?id=htmleditorconfig.

Avatar
jonathan323

19 February 2010 at 1:52pm Community Member, 2 Posts

How do I use it?

Avatar
Willr

20 February 2010 at 1:54pm Forum Moderator, 5511 Posts

You add the following line to the mysite/_config.php file. I'll update the docs to make this clearer.

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