hello,,
i have create wysiwyg for me i add youtube icon to add video tube
this code is
function insertyoutube() {
var video = '<object width="500" height="300"><param name="allowscriptaccess" value="always"></param><embed src="[B]ADD HERE AFTER REPLCE[/B]" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="560" height="340"></embed></object>';
window.opener.insertHTML(video, qsParm['wysiwyg']);
window.close();
}
i need when i put youtube link like this:
http://www.youtube.com/watch?v=U_csS0HehTw&feature=related
replce watch?v= to v/
so the link will come like this:
http://www.youtube.com/v/U_csS0HehTw&feature=relate
just this and add the link in src of embed you see add here in bold text
thanks