v is null
getParam("src", "")
UpdateEmbed(function())
Ok()
Ok()()
onclick(click clientX=295, clientY=313)
[Break on this error] return v[1] == '' ? dflt : v[1];function UpdateEmbed( e )
{
SetAttribute( e, 'type' , 'application/x-shockwave-flash' ) ;
SetAttribute( e, 'pluginspage' , 'http://www.macromedia.com/go/getflashplayer' ) ;
SetAttribute( e, 'src', getParam('src', '')) ;
SetAttribute( e, "width" , getParam('width', 425) ) ;
SetAttribute( e, "height", getParam('height', 355) ) ;
}
function getParam(param, dflt)
{
var yt = GetE('txtUrl').value;
var regx = new RegExp(param + '="([^"]*)"', 'i');
var v = yt.match(regx);
return v[1] == '' ? dflt : v[1];
}http://it.youtube.com/watch?v=k42MGjTp26M

Re: Youtube Plugin Problem
function UpdateEmbed( e ) { var youtubeUrl = GetE('txtUrl').value; var youtubeId = youtubeUrl.slice(youtubeUrl.search(/\?v=/i)+3); SetAttribute( e, 'type' , 'application/x-shockwave-flash' ) ; SetAttribute( e, 'pluginspage' , 'http://www.macromedia.com/go/getflashplayer' ) ; SetAttribute( e, 'src' , 'http://www.youtube.com/v/'+youtubeId) ; SetAttribute( e, "width" , 425 ) ; SetAttribute( e, "height" , 344 ) ; }Re: Youtube Plugin Problem
Re: Youtube Plugin Problem
Re: Youtube Plugin Problem
Attachments:
Re: Youtube Plugin Problem
i'm using fckeditor 2.3.1 with this youtube plugin but it fails on: SelectField( 'txtUrl' ) ; in the onload function. I also get error on oEditor.FCKEmbedAndObjectProcessor.RefreshView( oFakeImage, oEmbed ) ; on line 73.
Does anyone know what is causing this? Is it compatible with fckedtiro 2.3.1 ?
thanks in advance.
Re: Youtube Plugin Problem
Re: Youtube Plugin Problem
http://sourceforge.net/projects/totalshopuk/files/
http://www.totalshopuk.com/