Problems embedding <OBJECT> code in Ephox body

Folks:

Our users would like to embed code like this:

<object classid=“clsid:d27cdb6e-ae6d-11cf-96b8-444553540000” codebase=“http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#ve” height=“358” id=“etour1” rsion=“8,0,0,0” width=“324”><param name=“allowScriptAccess” value=“sameDomain” /><param name=“movie” value=“http://www3.mdanderson.org/streams/MDACCFlvPlayer.swf” /><param name=“quality” value=“high” /><param name=“bgcolor” value="#FFFFFF" /><param name=“flashvars” value=“configFilename=someurl” /><embed allowscriptaccess=“sameDomain” bgcolor="#FFFFFF" flashvars=“configFilename=someurl” height=“358” name=“eTour1” pluginspage=“http://www.macromedia.com/go/getflashplayer” quality=“high” src=“http://www3.mdanderson.org/streams/MDACCFlvPlayer.swf” type=“application/x-shockwave-flash” width=“324” /></object>

within an Ephox body. Issue is you can usually paste that in once and save but the code is mangled whenever the page gets edited again as Ephox ‘tidies’ the code.

Jimbo says here

http://forum.percussion.com/showthread.php?t=2028

that using a Rhythmyx Template will overcome the issue of Ephox removing the src or otherwise mangling the code as it does when you do a direct cut and paste of such code and try editing it again.

He suggests creating a dedicated “flash” content type and adding items to Ephox as a Rhythmyx template.

Sounded good but I have had no luck with that solution as the Rhythmxy template is rendered as a blank DIV and none of the OBJECT code makes it across. The “Flash” snippet works fine as a standalone item.

I have tried all sorts of escaping schemes and CDATA etc… but still the Rhythmyx template remains blank.

Can anyone suggest a solution?

We created a flash content type to handle this type of thing. The level of automation is up to you, you could have inputs on the content type for the possible variables that could change such as src, height, width, etc. and then just use your file content type to upload the swf, we basically merged the image and file content types provided by Percussion to allow us to embed swf files within the content type and account for all of the parameters that could change. When a content item uses the full page or snippet version of the content type, the template wraps the static object code around the variables provided by the content type.

Do you have the input and output transforms configured properly on the EditLive field(s)? If not, you may run into issues. Please review step 3 under additional configuration in the Readme.txt in your <rxroot>/Patch directory for specifics in Rx 6.52.

BWILDER:

Now actually we failed to do that. I am having problems doing step 2.8 (the Output rule). I am not seeing “Extension” as an option.

Probably best to open up a support ticket for this. If you see the extension for step 2.6, it should be there for 2.8.

Hi there

We use a text area field in the CE to add Flash code as Ephox strips out a lot of HTML tags. This works fine as the code is always published with the actual Flash item.

Cara