中国专业的PHP网站内容管理系统-织梦内容管理系统
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

31 行
688B

  1. /*
  2. Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved.
  3. For licensing, see LICENSE.html or http://ckeditor.com/license
  4. */
  5. /**
  6. * @file Image plugin
  7. */
  8. CKEDITOR.plugins.add( 'addon',
  9. {
  10. init : function( editor )
  11. {
  12. var pluginName = 'addon';
  13. // Register the dialog.
  14. CKEDITOR.dialog.add( pluginName, this.path + 'dialogs/addon.js' );
  15. // Register the command.
  16. editor.addCommand( pluginName, new CKEDITOR.dialogCommand( pluginName ) );
  17. // Register the toolbar button.
  18. editor.ui.addButton( 'Addon',
  19. {
  20. label : '附件',
  21. icon : 'http://desdevcms.com/images/addon.gif',
  22. command : pluginName
  23. });
  24. }
  25. } );