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.

Upgrading SilverStripe

Ask questions about upgrading SilverStripe to the latest version.

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

Embedding Javascript objects


Reply

2 Posts   1354 Views

Avatar
Fabie

17 February 2011 at 4:46pm Community Member, 28 Posts

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

17 February 2011 at 4:59pm Community Member, 28 Posts

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