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