Hello, I am trying to modify fckEmbedMovies plugin to work with yourtube/google videos.
I need just change url like this ->
http://youtube.com/watch?v=IkmpIXd9Q90
to html object like this ->
<object width="425" height="353"><param name="movie" value="http://www.youtube.com/v/IkmpIXd9Q90&rel=1"></param><param name="wmode" value="transparent"></param><embed src="http://www.youtube.com/v/IkmpIXd9Q90&rel=1" type="application/x-shockwave-flash" wmode="transparent" width="425" height="353"></embed></object>
So, as I understood I need just to change "CreateEmbeddedMovie" function of EmbedMovies plugin to something like this ->
function CreateEmbeddedMovie(e, url) { var html; html = '<object width="170" height="140">'; html+= '<param name="movie" value="' + url + '"></param>'; html+= '<param name="wmode" value="transparent"></param>'; html+= '<embed src="' + url + '&rel=1" type="application/x-shockwave-flash" wmode="transparent" width="170" height="140"></embed>'; html+= '</object>'; e.innerHTML = html; }
Okay, it's done and works perfectly with text or images (<img> tag)...
But when I am trying to embed and object to my fckEdtor instance, I see nothing...Nothing happens and nothing in hmtl source...
Where I've made a mistake?
Thx.
Re: Modifying EmbedMovies plugin
I am having the same problem from a plugin. The HTML code goes in to the source but nothing displays in the editor area. If I take the code and put it in a page it works perfectly. In Firefox I do get an error:
Error: uncaught exception: [Exception... "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIDOMNSHTMLDocument.execCommand]" nsresult: "0x80004005 (NS_ERROR_FAILURE)" location: "JS frame :: http://localhost/FCKeditor/editor/js/fc ... e_gecko.js :: anonymous :: line 32" data: no]
But I am have had no luck figuring it out. A straight embed tag without the object works as expected.
Re: Modifying EmbedMovies plugin
where is the "fckEmbedMovies" plugin?
Re: Modifying EmbedMovies plugin
Wiktor Walc
CTO, CKSource - http://cksource.com
--
Follow CKEditor on: Twitter | Facebook | Google+