5121 Posts in 1527 Topics by 1119 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 271 Views |
-
Silverstripe 3.0- script tags getting stripped from editor content after save and publish

2 October 2012 at 9:26pm
I need to extend the allowed tags in SilverStripe 3.0 editor (Tinymce) and also allow javascript in it
I added the below code in mysite/_config.php:
HtmlEditorConfig::get('cms')->setOptions(array('valid_elements' => "*
- "));
above code works and tags like form and input are accepted....
But its not accepting javascript..(i have tried alert('hello');) It remains after clicking update on the editor, but gets stripped after clicking 'save and publish'
same code in version 2.4.7 accepted script but it was commented out and CDATA was added..
please tell me how i can allow javascript in the editor.....
- "));
-
Re: Silverstripe 3.0- script tags getting stripped from editor content after save and publish

2 October 2012 at 9:28pm Last edited: 2 October 2012 9:28pm
Does 3.0 have some clean up mechanism to strip javascript after you click on 'save and publish'?
| 271 Views | ||
|
Page:
1
|
Go to Top |

