I personally use Greasemonkey to edit the YouTube embeds so they’re validly formed directly, without having to use any snippets or so.<object width="425" height="350" data="http://www.youtube.com/v/6gmP4nk0EOE" type="application/x-shockwave-flash"><a href="http://www.youtube.com/watch?v=6gmP4nk0EOE">undefined</a><param name="wmode" value="transparent"></param><em><strong>ERROR:</strong> If you can see this, then either <a href="http://www.youtube.com/">YouTube</a> is down or you don't have Flash installed.</em></object>
I agree with you, but to embed a youtube code you need to switch to ’’code’’ from the richtext editor
How is this any different/simpler/better than copying the code from the youtube page from the "Embed:" text field and pasting that into a MODx document? That seems to be about as easy as it gets for adding video content. How has this snippet simplified that?
-sD-
Dr. Scotty Delicious, Scientist.
and a lot of my clients should delete some html tags from the content 
)Thanks Leftblank
Nice idea, but the HTML-code is extremely bad; by no means xHTML valid, which isn’t great for those who want to keep their page as valid as possibleI personally use Greasemonkey to edit the YouTube embeds so they’re validly formed directly, without having to use any snippets or so.
In case you’re interested, here is a demo code, which validates xHTML 1.0 perfectly;
<object width="425" height="350" data="http://www.youtube.com/v/6gmP4nk0EOE" type="application/x-shockwave-flash"><a href="http://www.youtube.com/watch?v=6gmP4nk0EOE">undefined</a><param name="wmode" value="transparent"></param><em><strong>ERROR:</strong> If you can see this, then either <a href="http://www.youtube.com/">YouTube</a> is down or you don't have Flash installed.</em></object>
I will update the snippet with your suggestion soon as possible
I agree with you, but to embed a youtube code you need to switch to ’’code’’ from the richtext editorand a lot of my clients should delete some html tags from the content
...and when they will change the text content should delete the youtube code (not visible in the richtext editor)
I’m using on a big website with a lot of youtube videos.
It’s not HTML 4 Strict valid though, so you might want to add an option for that
Thanks LeftblankI will update the snippet with your suggestion soon as possible
If I’m right you can make it valid by removing the </parameter> tag.