config.js 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. /**
  2. * @license Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
  3. * For licensing, see LICENSE.html or http://ckeditor.com/license
  4. */
  5. CKEDITOR.editorConfig = function( config ) {
  6. // Define changes to default configuration here.
  7. // For complete reference see:
  8. // http://docs.ckeditor.com/#!/api/CKEDITOR.config
  9. // The toolbar groups arrangement, optimized for two toolbar rows.
  10. config.plugins = 'about,a11yhelp,basicstyles,bidi,blockquote,clipboard,colorbutton,colordialog,contextmenu,div,elementspath,enterkey,entities,filebrowser,find,floatingspace,font,format,forms,horizontalrule,htmlwriter,image,multiimg,indent,justify,link,list,liststyle,magicline,maximize,newpage,pagebreak,pastefromword,pastetext,preview,print,removeformat,resize,scayt,selectall,showblocks,showborders,sourcearea,specialchar,stylescombo,tab,table,tabletools,templates,toolbar,undo,wsc,wysiwygarea';
  11. config.toolbarGroups = [
  12. { name: 'clipboard', groups: [ 'clipboard', 'undo' ] },
  13. { name: 'editing', groups: [ 'find', 'selection', 'spellchecker' ] },
  14. { name: 'links' },
  15. { name: 'others' }, // this is your plugin's position,off course, you can change it!
  16. { name: 'insert' },
  17. { name: 'forms' },
  18. { name: 'tools' },
  19. { name: 'document', groups: [ 'multiimg', 'mode', 'document', 'doctools' ] },
  20. '/',
  21. { name: 'basicstyles', groups: [ 'basicstyles', 'cleanup' ] },
  22. { name: 'paragraph', groups: [ 'list', 'indent', 'blocks', 'align', 'bidi' ] },
  23. { name: 'styles' },
  24. { name: 'colors' },
  25. { name: 'about' }
  26. ];
  27. // Remove some buttons provided by the standard plugins, which are
  28. // not needed in the Standard(s) toolbar.
  29. config.removeButtons = 'Underline,Subscript,Superscript';
  30. // Set the most common block elements.
  31. config.format_tags = 'p;h1;h2;h3;h4;h5;h6;pre;address;div';// 'p;h1;h2;h3;pre';
  32. config.font_names='宋体/宋体;黑体/黑体;Arial/Arial, Helvetica, sans-serif;Century Gothic/Century Gothic;Comic Sans MS/Comic Sans MS, cursive;Courier New/Courier New, Courier, monospace;Georgia/Georgia, serif;Lucida Sans Unicode/Lucida Sans Unicode, Lucida Grande, sans-serif;Tahoma/Tahoma, Geneva, sans-serif;Times New Roman/Times New Roman, Times, serif;Trebuchet MS/Trebuchet MS, Helvetica, sans-serif;Verdana/Verdana, Geneva, sans-serif';
  33. config.allowedContent = true;
  34. // Simplify the dialog windows.
  35. config.removeDialogTabs = 'image:advanced;link:advanced';
  36. //config.extraPlugins="imagedef"; //注册自定义按钮
  37. config.extraPlugins="multiimg"; //注册自定义按钮
  38. };