Editor Stripping Object Tag

2 posts, 0 answers
  1. AnthonyRo
    AnthonyRo avatar
    1 posts
    Member since:
    Nov 2006

    Posted 05 Apr 2012 Link to this post

    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
  2. Rumen
    Admin
    Rumen avatar
    14351 posts

    Posted 06 Apr 2012 Link to this post

    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.
Back to Top