Hey,
I've found a lot of plugins for Youtube. Most of them require you to copy paste the html snippet from the youtube links. Found an edit of the existing flash plugin to add full youtube links, but it looks messed up.
So what i did is took the ideas and combined them. I've changed the existing Youtube plugin that asks for html snippets to support full youtube links. So now u can just copy paste an entire link and the plugin will insert an embedded youtube player in your page.
Could someone give me some feedback on this?
The project page is here for now: https://sourceforge.net/projects/ckeditoryoutube/
You can find the plugin download on the project page or take it from the attachment.
I'm new to this so any feedback would be welcome!
Regards,
Roderik Latruwe
I've found a lot of plugins for Youtube. Most of them require you to copy paste the html snippet from the youtube links. Found an edit of the existing flash plugin to add full youtube links, but it looks messed up.
So what i did is took the ideas and combined them. I've changed the existing Youtube plugin that asks for html snippets to support full youtube links. So now u can just copy paste an entire link and the plugin will insert an embedded youtube player in your page.
Could someone give me some feedback on this?
The project page is here for now: https://sourceforge.net/projects/ckeditoryoutube/
You can find the plugin download on the project page or take it from the attachment.
I'm new to this so any feedback would be welcome!
Regards,
Roderik Latruwe

thanks a lot for for your implementation and for sharing it with the CKEditor community.
I downloaded your code and gave it a quick test. The plugin works, so congratulations on that
My first comment: it would be nice to be able to download the uncompressed source code in the development phase as its production form does not look too readable, especially if you want to encourage others to check and comment it.
Second thing: the dialog window states: "Please copy and paste the Youtube URL here", but in YouTube's case it is not entirely clear which URL you really mean: the one from the browser's address bar (http://www.youtube.com/watch?v=XXXXXX), the "Share" link (http://youtu.be/XXXXXX) or the "Embed" code/link (<iframe title="YouTube video player" width="640" height="390" src="http://www.youtube.com/embed/Y4AFfpytCWU" frameborder="0" allowfullscreen></iframe>). Different YouTube solutions available not just for CKEditor, but for various forum/blog etc. engines require different approaches and end-users might be confused as to what you really mean.
As for the dialog window, why make it so huge? I see no reason for a dialog window that just contains one text field to be bigger than standard CKEditor dialog windows.
The text field is also missing the type="text" declaration and so the cursor is wrong.
Last but not least, the plugin does not support editing an already pasted YouTube video -- both the context menu and the double-click action opens the IFrame Properties dialog window and not your custom YouTube plugin dialog window. This may or may not be the desired behaviour, depending on your purpose.
Finally, the official spelling is "YouTube", so I would recommend sticking to that.
Just my two cents
Documentation Manager, CKSource
See CKEditor 4.x docs, CKEditor 3.x docs, CKFinder docs for help. CKEditor general FAQ is useful, too!
If you think you found a bug in CKEditor, read this!
As i'm new to this i'll have to look into how to make sure to edit the link when u double click the iframe.
But i'm sure i'll figure it out. Great feedback, do u mind if i send u a PM or if i have contact with u with skype or msn or whatever? There is a few questions i have about your questions.
But for the improvements, i'll look into them in the morning. I'm in Vietnam now for my internship for my last year IT application development. I'm here untill June 14th. Internet connection is bad here compared to europe, but i'll look into it and upload the newer version.
Regards,
Roderik Latruwe
Documentation Manager, CKSource
See CKEditor 4.x docs, CKEditor 3.x docs, CKFinder docs for help. CKEditor general FAQ is useful, too!
If you think you found a bug in CKEditor, read this!
Can u tell me how to make it that when u double click the iframe that you'll enter the Youtube dialog again?
The reason i don't reply that fast is because i'm working on a easy to use media plugin for CKeditor too.
One that uses IMCE and shadowbox.
regards,
Roderik Latruwe
https://sourceforge.net/projects/ckeditorshadowb/
i'll add another version of the plugin as this one is made for easy use for the people in this office. I'll post another version with automatic icons
0) please do include a small readme in your tar-file how to install and integrate the plugin (maybe with a small info how to add language codes
1) as everything seems to be casesensitive, I defined the toolbar entry in small letter:
2) I took care that all mentions of 'youtube' in plugin.js where in small letters:
3) as the image-file youtube.png was not recognized in Firefox (other plugins also do not use png as far as I checked), I converted youtube.png to youtube.jpg and replaced youtube.png with youtube.jpg in the plugin.js
Now I got it to work.
Cheers, Connie
1)
the language file uk.js is really wrong
CKEDITOR.plugins.setLang('vimeo', 'en', { vimeo : { title : "Embed Vimeo Video", button : "Embed Video", pasteMsg : "Please copy and paste the Youtube URL here" } });it points to vimeo and to english language!
2)
the image youtube_large.png is too large! I modifiedit for my purposes to a width of 140px.
I modified the youtube.js so you get a smaller dialogue window with a smaller image:
(function(){CKEDITOR.dialog.add('youtube', function(editor) {return{title:editor.lang.youtube.title,minWidth:CKEDITOR.env.ie&&CKEDITOR.env.quirks?200:250,minHeight:240, onShow:function(){this.getContentElement('general','content').getInputElement().setValue('')}, onOk:function(){ val = this.getContentElement('general','content').getInputElement().getValue(); val = val.replace("watch\?v\=", "v\/"); var text='<iframe title="YouTube video player" class="youtube-player" type="text/html" width="480" height="390" src="http://www.youtube.com/embed/' //+this.getContentElement('general','content').getInputElement().getValue() + val +'?rel=0" frameborder="0"></iframe>'; this.getParentEditor().insertHtml(text)}, contents:[{label:editor.lang.common.generalTab,id:'general',elements: [{type:'html',id:'pasteMsg',html:'<div style="white-space:normal;width:140px;"><img style="margin:5px auto;" src="' +CKEDITOR.getUrl(CKEDITOR.plugins.getPath('youtube') +'images/youtube_large.png') +'"><br />'+editor.lang.youtube.pasteMsg +'</div>'},{type:'html',id:'content',style:'width:180px;height:90px',html:'<input size="40" style="'+'border:1px solid black;'+'background:white">',focus:function(){this.getElement().focus()}}]}]}})})();Example: http://youtu.be/Qdoe_gI_fSs
Weird how they have changed this.
I have many many tried youtube plugin use in my latest version.
and also implement. doesn't load plugin.
anyone help me or send me complete script for ckeditor
Thanks in advance
Attachments: