Closed (duplicate)
Project:
Wysiwyg
Version:
6.x-2.3
Component:
Miscellaneous
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
21 Mar 2011 at 10:26 UTC
Updated:
23 May 2012 at 18:35 UTC
I need to allow you tube embedding. If I 'Dissable rich-text' I can embed you tube video's fine. However with rich text not disabled, just the text embedding code shows up.
I think its because the code is being changed from this:
<iframe title="YouTube video player" width="480" height="390" src="http://www.youtube.com/embed/P4wI_o8gyxA?rel=0" frameborder="0" allowfullscreen></iframe>
Into this:
<p><iframe title="YouTube video player" width="480" height="390" src="http://www.youtube.com/embed/P4wI_o8gyxA?rel=0" frameborder="0" allowfullscreen></iframe></p>
I think this must be wysiwug stopping it from working as it works with disabled rich text. I have none of the 'Cleanup and output' ticked and to 'Block formats:' in 'CSS' Ive added 'iframe'.
Thanks
Comments
Comment #1
brianV commentedPossible duplicate of #544032: Add iframes via TinyMCE?
Comment #2
jdln commentedThanks, surprised theirs not a more standard solution though.
Comment #3
adrianmak commentedhow about for ckeditor ?
Comment #4
drupalina commentedI use the "Media" button of the TinyMCE and embed Flash and for URL I just paste the URL of the youtube video. A bit un-intuitive and quircky solution... but it works just fine. Note: After the node has been updated, the video won't appear at first. Don't panic - just press F5 to reload that page.
Comment #5
webservant316 commentedI tried the solution in #4, but I get whitespace. Here is the html generated from TinyMCE with flash and a URL to a a youtube video. What I am doing wrong?
<object width="320" height="240" class="mceItemMedia mceItemFlash" data="http://youtu.be/0iBg88C4MNc" type="application/x-shockwave-flash"><param name="url" value="http://youtu.be/0iBg88C4MNc" /><param name="src" value="http://youtu.be/0iBg88C4MNc" /><param name="play" value="false" /><param name="loop" value="false" /></object>