Index: lams_central/web/ckeditor/plugins/movieplayer/plugin.js =================================================================== RCS file: /usr/local/cvsroot/lams_central/web/ckeditor/plugins/movieplayer/plugin.js,v diff -u -r1.1 -r1.2 --- lams_central/web/ckeditor/plugins/movieplayer/plugin.js 22 Nov 2010 07:14:37 -0000 1.1 +++ lams_central/web/ckeditor/plugins/movieplayer/plugin.js 20 Dec 2011 08:21:39 -0000 1.2 @@ -1,6 +1,6 @@ -/* - * CKEditior plugin.js for Movie Player - * ------------ +/* + * CKEditior plugin.js for Movie Player + * ------------ */ CKEDITOR.plugins.add('movieplayer', @@ -12,16 +12,23 @@ editor.ui.addButton( 'MoviePlayer', - { - label : editor.lang.movieplayer.MoviePlayerBtn, - command : 'MoviePlayer', - icon : pluginPath + 'filmreel.gif', - title : editor.lang.movieplayer.MoviePlayerTooltip + { + label : editor.lang.movieplayer.MoviePlayerBtn, + command : 'MoviePlayer', + icon : pluginPath + 'filmreel.gif', + title : editor.lang.movieplayer.MoviePlayerTooltip } ); + + editor.addCommand( + 'MoviePlayer', + { + exec : function(editor){ + editor.openDialog('MoviePlayer'); + } + } + ); - editor.addCommand('MoviePlayer', {exec:showDialogPlugin}); - CKEDITOR.dialog.addIframe( 'MoviePlayer', editor.lang.movieplayer.DlgMoviePlayerTitle, @@ -31,8 +38,4 @@ ); } } - ); - -function showDialogPlugin(e){ - e.openDialog('MoviePlayer'); -} \ No newline at end of file + ); \ No newline at end of file Index: lams_central/web/ckeditor/plugins/paint/plugin.js =================================================================== RCS file: /usr/local/cvsroot/lams_central/web/ckeditor/plugins/paint/plugin.js,v diff -u -r1.2 -r1.3 --- lams_central/web/ckeditor/plugins/paint/plugin.js 9 Nov 2010 18:24:58 -0000 1.2 +++ lams_central/web/ckeditor/plugins/paint/plugin.js 20 Dec 2011 08:21:39 -0000 1.3 @@ -8,15 +8,22 @@ editor.ui.addButton( 'Paint_Button', { - label : 'Paint canvas', + label : 'Paint canvas', command : 'Paint canvas', - icon : pluginPath + 'icon.png', - title : editor.lang.Paint.Button + icon : pluginPath + 'icon.png', + title : editor.lang.Paint.Button } ); + + editor.addCommand( + 'Paint canvas', + { + exec : function(editor){ + editor.openDialog(editor.lang.Paint.DialogName); + } + } + ); - editor.addCommand('Paint canvas', {exec:showDialogPlugin}); - editor.paintStartingImage = ""; editor.on( 'doubleclick', function( evt ) { @@ -41,8 +48,4 @@ ); } } - ); - -function showDialogPlugin(e){ - e.openDialog(e.lang.Paint.DialogName); -} \ No newline at end of file + ); \ No newline at end of file Index: lams_tool_wiki/web/wikilink/plugin.js =================================================================== RCS file: /usr/local/cvsroot/lams_tool_wiki/web/wikilink/plugin.js,v diff -u -r1.2 -r1.3 --- lams_tool_wiki/web/wikilink/plugin.js 7 Nov 2010 09:22:00 -0000 1.2 +++ lams_tool_wiki/web/wikilink/plugin.js 20 Dec 2011 08:21:41 -0000 1.3 @@ -8,13 +8,22 @@ editor.ui.addButton( 'WikiLink', { - label : "WikiLink", + label : "WikiLink", command : 'WikiLink', - icon : pluginPath + 'wikilink.gif', - title : editor.lang.wikilink.WikiLinkToolTip + icon : pluginPath + 'wikilink.gif', + title : editor.lang.wikilink.WikiLinkToolTip } ); - editor.addCommand('WikiLink', {exec:showDialogPlugin}); + + editor.addCommand( + 'WikiLink', + { + exec : function(editor){ + editor.openDialog('WikiLink'); + } + } + ); + CKEDITOR.dialog.addIframe( 'WikiLink', 'WikiLink', @@ -26,8 +35,4 @@ ); } } - ); - -function showDialogPlugin(e){ - e.openDialog('WikiLink'); -} +); \ No newline at end of file