This is a migrated thread and some comments may be shown as answers.

Editor Stripping Object Tag

1 Answer 44 Views
Editor
This is a migrated thread and some comments may be shown as answers.
AnthonyRo
Top achievements
Rank 1
AnthonyRo asked on 05 Apr 2012, 03:28 PM
Hi All,

I have a scenario where the RadEditor is stripping the Object Tags around an embedded mp3.

This is what we try to cut and paste HTML mode:
<p>
  <object width="100%" height="35">
    <embed type="application/x-shockwave-flash" flashvars="audioUrl=http://www.eteacher.pro/Portals/0/SCO/FX0186/FX0186.mp3" src="https://www.google.com/reader/ui/3523697345-audio-player.swf" width="100%" height="27" quality="best"></embed>
    <noembed>Podcast player feature available on website only.</noembed>
  </object>
  <br>
  Click the PLAY button to listen to this podcast.</p>

We then switch to Design Mode, go back to HTML mode and find this:
<p><embed height="27" type="application/x-shockwave-flash" width="100%" src="http://www.google.com/reader/ui/3523697345-audio-player.swf" quality="best" flashvars="audioUrl=http://www.eteacher.pro/Portals/0/SCO/STR051/STR051.mp3" /><noembed /><br />
Click the PLAY button to listen to this podcast.</p>

This then causes other issues.. So my questions are:
1) Why is the object tag being stripped?
2) Is the top HTML code not well formed??

Thanks
Anthony

1 Answer, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 06 Apr 2012, 12:43 PM
Hello,

This is IE behavior which is fixed in IE9. To fix it in the earlier versions, you should apply a classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" to the object tag. If you insert a media or flash object from the Media or Flash managers of RadEditor you will see that the classid attribute is always available in the inserted content.

Kind regards,
Rumen
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
Editor
Asked by
AnthonyRo
Top achievements
Rank 1
Answers by
Rumen
Telerik team
Share this question
or