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.

General Questions /

General questions about getting started with SilverStripe that don't fit in any of the categories above.

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

unwanted filtering of tags when embeding flash

Go to End

2 Posts   1343 Views


Community Member, 8 Posts

11 January 2009 at 7:40pm

After a clean install, following a number of dead ends i have mnaged to isolate what appears to either be a bug or something hidden somewhere that needs to be turned off or removed.

I haev set up SilverStripe 2.3.0-rc2 with blog and forum, i was hoping to be able to embed the occasional object such as a flash movie into the blogs and on the main site but it appears that even if you manually edit the HTML via the admin interface an object such as this.

<object width="550" height="400">
<param name="movie" value="/assets/flash/evil-icon.swf">
<embed src="/assets/flash/evil-icon.swf" width="550" height="400">

seems to get filtered and both the
<param.....> tag and <embed...>
get filtered and removed while being saqved to the database.
I have updated tiny_mce_improvements.js and tinymce.template.js but this did not seem to resolve the problem.

I then edited the information contained in the mysql database under SiteTree_Live manually adding the relevent tags. this worked and the flash was embeded into the page. However upon going back in to the admin interface and trying to edit the page I received a javascript error and was not able to edit or re-save the page with the information obtained from the database.

However if i deleted the object from the page i could then sage the page.

Im not an expert but it seems to me that upon saving the information it is being run past a filter. any pointers would be appreciated as to either how to fix this or where to start looking. I would say from what i have seen that once this is resolved then it should also fix the problem with using the GUI to add/embed flash items.



Community Member, 400 Posts

12 January 2009 at 3:25pm

I came across such a situation once too, and found a solution.

I blogged it on my blog, check it out