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

Html generated by flash/media manager

1 Answer 27 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Ivan
Top achievements
Rank 1
Ivan asked on 12 Dec 2011, 04:05 PM
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?

1 Answer, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 14 Dec 2011, 02:31 PM
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
Tags
Editor
Asked by
Ivan
Top achievements
Rank 1
Answers by
Rumen
Telerik team
Share this question
or