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're retiring the forums!

The SilverStripe forums have passed their heyday. They'll stick around, but will be read only. We'd encourage you to get involved in the community via the following channels instead:

Upgrading SilverStripe /

Ask questions about upgrading SilverStripe to the latest version.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

Embedding Javascript objects

Go to End

2 Posts   1918 Views


Community Member, 28 Posts

17 February 2011 at 4:46pm

It seems that in the latest versions users cannot embed Script (such as a tripadvisor widget) as it is blocked in WYSIWYG editor. I had found a hack for the earlier versions of SS which I had shared and documented but I cannot seem to find one now. Has someone successfully managed to do so?

I am not interested as adding a template page but I need users to be able to change this whenever they wish so simply like pasting an iframe in the html i would like them to be able to paste script.

Looking forward to any help I can get!



Community Member, 28 Posts

17 February 2011 at 4:59pm

Update: I have tried this; 'extended_valid_elements' => "img[class|src|alt|title|hspace|vspace|width|height|align|onmouseover|onmouseout|name|usemap],iframe[src|name|width|height|align|frameborder|marginwidth|marginheight|scrolling],object[width|height|data|type],param[name|value],map[class|name|id],area[shape|coords|href|target|alt],script[language|type|src]"

but it hasn't been successful. ?