Topic: Media plugin trouble when save YouTube url
Hi everybody,
I've some trouble with 3.2.5 TinyMCE and Media Plugin to insert YouTube url...
The trouble appears only after my form submit:
1- open Media Editor
2- paste YouTube url (e.g. http://www.youtube.com/v/_OHIH8DOLH8)
3- see Preview perfectly
4- click on Insert button
5- see yellow box for video in my editor perfectly
6- view HTML source immediately and the code is OK:
<p>
<object height="350" width="425" data="http://www.youtube.com/v/_OHIH8DOLH8" type="application/x-shockwave-flash">
<param name="src" value="http://www.youtube.com/v/_OHIH8DOLH8" />
</object>
</p>7- valid my form to save text in my database
8- TinyMCE remove <object> tags and keep only the <param> tag in my database record
9- finally, once my editor is reloaded, nothing is displayed and if I click on "HTML source" button, there is just a <span> tag like that, instead of the <param> tag:
<span name="src" value="http://www.youtube.com/v/_OHIH8DOLH8"> </span>Here is my Tinymce init:
theme : "advanced",
plugins : "safari,style,layer,save,advimage,advlink,emotions,iespell,inlinepopups,insertdatetime,preview,media,searchreplace,print,contextmenu,paste,directionality,fullscreen,noneditable,visualchars,nonbreaking,xhtmlxtras,template",
// Theme options
theme_advanced_buttons1 : "bold,italic,|,link,unlink,|,formatselect,|,media,code",
theme_advanced_buttons2 : "",
theme_advanced_buttons3 : "",
theme_advanced_buttons4 : "",
theme_advanced_toolbar_location : "top",
theme_advanced_toolbar_align : "left",
theme_advanced_statusbar_location : "bottom",
theme_advanced_resizing : true,
theme_advanced_blockformats : "p,h3,h5",
content_css : "/css/contenu.css",
valid_elements : "*[*]"I've tried with "media_strict:true|false", with "cleanup:false|true", with "extend_valid_elements" and many other tricks, with no results!?
This trouble is the same with FF 3.5.2 or Safari 4.0.3 on MacOS 10.5.8