These are the info about the plugin:
YouTube Plugin for FCKeditor - 1.0.3
Last Update: Jul 29 2008
The problem is when i click the Button OK of the form and try to insert the video.
This is the debug information from firebug:
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];
Do you know why? This is the part of the code:
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]; }
I tested the script with this url video of youtube: http://it.youtube.com/watch?v=k42MGjTp26M
I really need help
Re: Youtube Plugin Problem
I had the same problem and i'm not entirely sure on why it was happening...
I created the code below to get around the problem:-
ibizara
Re: Youtube Plugin Problem
You can use this plugin as an alternative: http://martinezdelizarrondo.com/swfobject/
Re: Youtube Plugin Problem
If you want to stop the extra related videos at the end:-
ibizara
Re: Youtube Plugin Problem
Extra options for size and quality
ibizara
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
I paste the folder to editor/plugins and then in config file I wrote 'YouTube' and it doesn't work
I can't see the youtube button in editor ... can anyone help me?
Re: Youtube Plugin Problem
CKEditor with the YouTube plugin has now been added to my OpenSource eCommerce Project.
Download - http://sourceforge.net/projects/totalshopuk/files/
Live Demo - http://www.totalshopuk.com/
Regards,
ibizara