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   1022 Views

Avatar
jonathan323

Community Member, 2 Posts

19 February 2010 at 6:59am

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

Avatar
Willr

Forum Moderator, 5513 Posts

19 February 2010 at 9:05am

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

Avatar
jonathan323

Community Member, 2 Posts

19 February 2010 at 1:52pm

How do I use it?

Avatar
Willr

Forum Moderator, 5513 Posts

20 February 2010 at 1:54pm

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');