-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathplugin.js
More file actions
36 lines (31 loc) · 1.01 KB
/
Copy pathplugin.js
File metadata and controls
36 lines (31 loc) · 1.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
/*
created by Unknow
modified by introtik
Mohammed Ahmed: maa@intro.ps
22/May/2012
*/
// (function(){var mp3playerCmd={exec:function(editor){editor.openDialog('mp3player');return}};
// CKEDITOR.plugins.add('mp3player',{
// lang:['en','ar'],
// requires:['dialog'],
// init:function(editor){
// var commandName='mp3player';
// editor.addCommand(commandName,mp3playerCmd);
// editor.ui.addButton('Mp3Player',{
// label:editor.lang.mp3player.button,
// command:commandName,
// icon:this.path+"images/mp3.png"
// });
// CKEDITOR.dialog.add(commandName,CKEDITOR.getUrl(this.path+'dialogs/mp3player.js'))}})})();
CKEDITOR.plugins.add( 'mp3player', {
init: function( editor ) {
CKEDITOR.dialog.add( 'mp3player', this.path + 'dialogs/mp3player.js' );
editor.addCommand( 'mp3player', new CKEDITOR.dialogCommand( 'mp3player' ) );
editor.ui.addButton( 'Mp3Player', {
label: 'Insert Mp3',
command: 'mp3player',
icon: this.path+"images/mp3.png",
toolbar: 'insert,100'
});
}
});