www.gusucode.com > DEDECMS精简版 织梦CMS系统企业精简版 v3.0.1.2源码程序 > cloudcms_v3.0.1.2/include/ckeditor/plugins/addon/plugin.js
CKEDITOR.plugins.add( 'addon', { init : function( editor ) { var pluginName = 'addon'; // Register the dialog. CKEDITOR.dialog.add( pluginName, this.path + 'dialogs/addon.js' ); // Register the command. editor.addCommand( pluginName, new CKEDITOR.dialogCommand( pluginName ) ); // Register the toolbar button. editor.ui.addButton( 'Addon', { label : '附件', icon : 'http://desdevcms.com/images/addon.gif', command : pluginName }); } } );