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.

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

Avatar
Fabie

Community Member, 28 Posts

17 February 2011 at 4:46pm

Hi,
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!

Cheers

Avatar
Fabie

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. ?