Html generated by flash/media manager

2 posts, 0 answers
  1. Ivan
    Ivan avatar
    16 posts
    Member since:
    Oct 2011

    Posted 12 Dec 2011 Link to this post

    Hello,

    When I use media or flash manager to insert video or flash into RTE it generates the following HTML:
    <object classid="clsid:6BF52A52-394A-11D3-B153-00C04F79FAA6" width="150" height="150" type="application/x-oleobject">
    <param name="URL" value="~/media/AC77CAFB2FB94221B2B45A0D773DEB27.ashx"/>
    <embed src="%7E/media/AC77CAFB2FB94221B2B45A0D773DEB27.ashx" type="application/x-mplayer2" pluginspage="http://www.microsoft.com/Windows/MediaPlayer" height="150" width="150">
    </object>


    The problem is that the embed tag does not pass wc3 validation. How this can be solved?
  2. Rumen
    Admin
    Rumen avatar
    14469 posts

    Posted 14 Dec 2011 Link to this post

    Hi Ivan,

    Indeed, the embed tag is not XHTML compliant but there are browsers that cannot play OBJECT tags (like Firefox) and for that reason to provide cross-browser support for Flash and Video files our Flash and Media managers insert also embed tags along with the object one. IE can work only with object tags, but Firefox not.

    If you would like you can modify the output from the Media and Flash managers in the OnClientPasteHtml event of RadEditor.

    Greetings,
    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