Can't embed YouTube video

2 replies. Last post: April 27, 2011 5:13 AM by Lili Khiung
Tags :
  • (None)
  • New Discussion
  • New Question
  • New Product Feedback

I've can't add YouTube videos to a document in a WebTextEditor.  The editor keeps changing the HTML so that it becomes broken.  Here are the issues I found:

Steps to Reproduce:

  • Switch to "HTML" view.
  • Click "media"
  • For "Media Type" choose "YouTube videos"
  • For the URL, enter a link to a YouTube video (i.e. http://www.youtube.com/watch?v=vmbrFFP7bXU)
  • Click on "Insert Link"
  • The following code appears in the editor:
<object width="200" height="200"><param name="movie" value="http://www.youtube.com/watch?v=vmbrFFP7bXU" /><embed src="http://www.youtube.com/watch?v=vmbrFFP7bXU" type="application/x-shockwave-flash" width="200" height="200"></embed></object>
  • This is the correct code.
  • Click on "Design".  The video element appears broken.
  • Click on "HTML" again.  The code has changed:
<embed height="200" type="null" width="200" src="http://www.youtube.com/watch?v=vmbrFFP7bXU" /></embed />

This isn't even valid HTML (note the broken closing embed tag.) The same thing happens if I manually copy and paste the old-style embed code from the youtube page.

If I use the new-style embedding code from youtube (which uses an iframe):

<iframe title="YouTube video player" width="480" height="390" src="http://www.youtube.com/embed/vmbrFFP7bXU?rel=0" frameborder="0" allowfullscreen></iframe>

The editor changes it to this:

<iframe title="YouTube video player" height="390" src="http://www.youtube.com/embed/TKtURqCt-JQ?rel=0" frameborder="0" width="480" allowfullscreen="" />

Note that it removed the closing iframe tag.  This doesn't work with iframes, at least not in Internet Explorer browsers.  It corrupts the rendering of the rest of the page after this point.

So I have no way at all right now to include a video element using the WebTextEditor.  Is there any workaround?

Thanks for your help!

All times are GMT -5. The time now is 12:48 AM.
Previous Next