Hello,
I needed a Youtube and Mp3 plugins to use them with CKeditor.
I downloaded many nonworking ones. I am attaching a fully working plugins.
please test them a let me know.
good luck
MOhammed Ahmed
maa@intro.ps
I needed a Youtube and Mp3 plugins to use them with CKeditor.
I downloaded many nonworking ones. I am attaching a fully working plugins.
please test them a let me know.
Installation:
1 - copy the folders: mp3player AND youtube to: ckeditor/plugins/
2 - copy file: player_mp3.swf to you woking directory: where you call the contents of ckeditor
example: if you have a page called view.php or view.html , then the file: player_mp3.swf must be in same directory. like this:
my_dir/view.php
my_dir/view.html
my_dir/any_thing.html
my_dir/player_mp3.swf
3 - open ckeditor main config file: config.js or (edit your config code)
the load the plugins:
config.extraPlugins = "youtube,mp3player";
and add them to toolbar :
{ name: 'insert', items : [ 'Youtube','Mp3Player'] },
4- config.js is an example of source ckeditor with theattached plugins
Note:
by default the mp3 player is set to autoplay
to change it: open: ckeditor/plugins/mp3player/dialogs/mp3player.js
go to line: 21 look for: autoplay=1 change to: autoplay=0
/*
Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
example config file: how to load the pluings: youtube, mp3player
*/
CKEDITOR.editorConfig = function( config )
{
config.extraPlugins = "youtube,mp3player,autogrow"; /* look here */
config.language = 'en';
config.uiColor = '#D8C18F';
config.skin = 'kama';
config.contentsLangDirection = 'rtl';
config.autoGrow_maxHeight = '450';
config.toolbar_Full =
[
{ name: 'document', items : [ 'Source','-','Save','NewPage','DocProps','Preview','Print','-','Templates' ] },
{ name: 'clipboard', items : [ 'Cut','Copy','Paste','PasteText','PasteFromWord','-','Undo','Redo' ] },
{ name: 'editing', items : [ 'Find','Replace','-','SelectAll','-','SpellChecker', 'Scayt' ] },
{ name: 'insert', items : [ 'Image','Flash','Table','HorizontalRule','Smiley','SpecialChar','PageBreak'] },
{ name: 'insert', items : [ 'Youtube','Mp3Player'] }, /* look here */
/*{ name: 'forms', items : [ 'Form', 'Checkbox', 'Radio', 'TextField', 'Textarea', 'Select', 'Button', 'ImageButton', 'HiddenField' ] },*/
'/',
{ name: 'basicstyles', items : [ 'Bold','Italic','Underline','Strike','Subscript','Superscript','-','RemoveFormat' ] },
{ name: 'paragraph', items : [ 'NumberedList','BulletedList','-','Outdent','Indent','-','Blockquote','CreateDiv','-','JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock','-','BidiLtr','BidiRtl' ] },
{ name: 'links', items : [ 'Link','Unlink','Anchor' ] },
'/',
{ name: 'styles', items : [ 'Styles','Format','Font','FontSize' ] },
{ name: 'colors', items : [ 'TextColor','BGColor' ] },
{ name: 'tools', items : [ 'Maximize', 'ShowBlocks','-','About' ] }
];
};
good luck
MOhammed Ahmed
maa@intro.ps

Also a volume bar would be nice in the mp3 plugin and the icon seems to be cropped, and the yellow and white makes it hard to see the music note in the icon (a very frivolous remark but once I get rolling...).
Regardless, the plugin is ready and a great addition!
thanks for the comments.
I have updated the youtube plugin, and stated to users not to paste embed code. along with examples.
also i changed the mp3 icon.
good luck
MOhammed
I haven't tested which ones behave this way because so far I haven't needed this option.
Although After I added : CKEDITOR.config.extraPlugins = 'youtube'; in the config file, it disengages the loading of my StyleSheets in my ckeditor instances.
So my drop down styles is empty. If I delite the extraplugins line, everything is back to normal (styles).
I really wonder why and how I could resolve the issue.
Thanks for your help.
hi Sergelie,
can you post your config here. so we can check it.
regards
Thanks a lot introtik : It was a problem with my config. It is solved! Regards.
Thank you for this great plugin. Is it possible to have the "Browse Server" option (see proposed image sample attached below) included in the popup menu to be able to select the mp3 files on our server? Without this browse function, we have to open two browser windows and do a copy/paste of the mp3 URL from the same server. I hope you can add this feature, thank you again for this great plugin.
Attachments:
the plugin work perfectly, but same with zoe. i need the "browse server" button to get my file from the browse window of my file manager. thanks.
i got a plugin https://source.sakaiproject.org/contrib/unisa/fckeditor/EmbedMovies/ but it is for FCKEditor not for CKeditor.
thanks. hopefull there is way out for my problem.
thanks
Regards.