TinyMCE:Configuration/media strict
From Moxiecode Documentation Wiki
[edit]
media_strict
This option enables you to use embeded objects like YouTube Videos to handle in strict XHTML mode. The Output will be like this if it is set to true: Yhe strict method is verified to work in IE 6+, FF 2+, Safari 3+, Opera 9.5+ and Chrome 1+. So this is enabled by default.
<object width="425" height="344" data="http://www.youtube.com/v/xyz_video" type="application/x-shockwave-flash"> <param name="allowFullScreen" value="true" /> <param name="allowscriptaccess" value="always" /> <param name="src" value="http://www.youtube.com/v/xyz_video" /> <param name="allowfullscreen" value="true" /> </object>
The strict method might fail in very old browsers. Please set it to false if you want to use the old method. Output will be than like that:
<object height="295" width="480" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"> <param name="allowFullScreen" value="true" /> <param name="allowscriptaccess" value="always" /> <param name="src" value="http://www.youtube.com/v/xyz_video" /> <param name="allowfullscreen" value="true" /> <embed height="295" width="480" src="http://www.youtube.com/v/xyz_video" allowscriptaccess="always" allowfullscreen="true" type="application/x-shockwave-flash"></embed> </object>
[edit]
Example of usage of the media_strict option:
tinyMCE.init({
...
// set to show videos
media_strict : false
});
