I need to add the following object tag to a page
<object id="myExperience" class="BrightcoveExperience">
<param name="bgcolor" value="#FFFFFF" />
<param name="width" value="648" />
<param name="height" value="630" />
<param name="playerID" value="801136430001" />
<param name="playerKey" value="**********" /><param name="isVid" value="true"/>
<param name="isUI" value="true" /><param name="dynamicStreaming" value="true" />
</object>
However WordPress is stripping the object tag and everything inside and replacing it with non-breaking spaces.
The editor I’m using in TinyMCE Advanced on WP .3.2.1, I tried installed TinyMCE config and adding the following to the extended_valid_elements
object[class|id|width|height|codebase|*],param[name|value|_value]
But it’s had no effect, can anyone point me in the right direction?
I’m not 100% sure, but this problem seems related to the
unfiltered_html
capability restriction.An easy fix (and probably a solution even if the issue in not of capabilities) is to make a shortcode to handle the object insertion.
This example is for inserting a SoundCloud iframe, but easily adaptable to the object tag.
The function
myUrlEncode
is just a helper in this specific SoundCloud case, but I’ll leave it here just in case…