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.
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.