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

Allowing inline javascript


Go to End


3 Posts   2049 Views

Avatar
Phill

Community Member, 81 Posts

24 January 2009 at 1:52am

Hey

I need to use inline javascript to display a service from an external site iv been trying to insert it through the html option but its just getting stripped out, any ideas on how i can change ss/tinyMCE to allow javascript to be inserted through the html input option?

Thanks

Avatar
retrocool

Community Member, 1 Post

31 October 2009 at 2:02am

Edited: 31/10/2009 2:02am

Did the solution turn out to be 'use another CMS'? Or did you get any help?

Struggling with this one myself.

retrocool

Avatar
bummzack

Community Member, 904 Posts

31 October 2009 at 3:05am

For these kind of things I usually create a separate Page-Type, something like a EmbedPage. This page simply has a regular TextField where you would insert raw HTML code that is then placed in the template...
Inserting scripts or other stuff like flash embeds is usually a bad idea and doesn't work well with a wysiwyg editor.