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

HTMLEditorField stripping CSS tags


Go to End


3 Posts   1427 Views

Avatar
Nev

Community Member, 5 Posts

30 January 2011 at 3:02am

I am trying to put a table in the CMS and its stripping out the tags. us there any way to stop Silverstripe stripping these tags ?

If I use a Text Field it will won't strip anything out but wont be an easy to edit table....

Any help be much appreciated !

Avatar
Nivanka

Community Member, 400 Posts

1 February 2011 at 2:37pm

check this http://api.silverstripe.org/trunk/forms/fields-formattedinput/HtmlEditorConfig.html and see whether if will help you?

I think if you can go through the codes of the CMS and sapphire you will find some way to do this.

Avatar
Nev

Community Member, 5 Posts

1 February 2011 at 10:03pm

Thanks,

This helps if you put in the config.php
HtmlEditorConfig::get('cms')->setOption('verify_html', false);

Or go into the HtmlEditorConfig.php file and set it from true to false.