Index: lams_central/web/ckeditor/plugins/movieplayer/plugin.js =================================================================== diff -u -r63caec7d86903e659e906042390eee95cba3a801 -r63acae81005e724402908e9da61a97c455b27c01 --- lams_central/web/ckeditor/plugins/movieplayer/plugin.js (.../plugin.js) (revision 63caec7d86903e659e906042390eee95cba3a801) +++ lams_central/web/ckeditor/plugins/movieplayer/plugin.js (.../plugin.js) (revision 63acae81005e724402908e9da61a97c455b27c01) @@ -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 =================================================================== diff -u -rbcaeb1544f11878cf7fb75e77495ed77d2b059a5 -r63acae81005e724402908e9da61a97c455b27c01 --- lams_central/web/ckeditor/plugins/paint/plugin.js (.../plugin.js) (revision bcaeb1544f11878cf7fb75e77495ed77d2b059a5) +++ lams_central/web/ckeditor/plugins/paint/plugin.js (.../plugin.js) (revision 63acae81005e724402908e9da61a97c455b27c01) @@ -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 =================================================================== diff -u -r0213245513dc81f7d8a0c57dac65ce409b50aa05 -r63acae81005e724402908e9da61a97c455b27c01 --- lams_tool_wiki/web/wikilink/plugin.js (.../plugin.js) (revision 0213245513dc81f7d8a0c57dac65ce409b50aa05) +++ lams_tool_wiki/web/wikilink/plugin.js (.../plugin.js) (revision 63acae81005e724402908e9da61a97c455b27c01) @@ -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