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

RadEditor to embed youtube video

1 Answer 77 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Lau
Top achievements
Rank 1
Lau asked on 12 Aug 2010, 12:04 PM
Hi,
I have created a RadEditor with a custom EditorTool for embedding youtube video, in the pop up form, user has to input the link for the youtube video and after clicking submit it should return the embed HTML to the editor.

However, I found some tags like "Object" and "Param" are missed in the pasting HTML.

I use:
editor.pasteHtml(String.format("<object width=\"425\" height=\"350\" ><param name=\"movie\" value=\"{0}\"></param><param name=\"wmode\" value=\"transparent\"></param><embed src=\"{0}\" type=\"application/x-shockwave-flash\" wmode=\"transparent\" width=\"425\" height=\"350\"></embed></object>", args.href));

output:
<object width="425" height="350"><embed src="aa" type="application/x-shockwave-flash" wmode="transparent" width="425" height="350"></embed></object>

to paste the resulting HTML, may you please advise what should I do to make it work? Thanks a lot.

1 Answer, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 12 Aug 2010, 12:20 PM
Hello Lau,

To paste flash object tag content with param tags in RadEditor, you should use the IEKeepObjectParamsFilter and MozillaKeepFlashString filters. In other case Internet Explorer will strip the param tags. See this forum thread for more information: Problems with ConvertToXhtml Filter and <object> tag.


Sincerely yours,
Rumen
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
Editor
Asked by
Lau
Top achievements
Rank 1
Answers by
Rumen
Telerik team
Share this question
or