config.js 1.1 KB

123456789101112131415161718192021
  1. CKEDITOR.editorConfig = function( config ) {
  2. config.toolbarGroups = [
  3. { name: 'clipboard', groups: [ 'clipboard', 'undo' ] },
  4. { name: 'editing', groups: [ 'find', 'selection', 'spellchecker', 'editing' ] },
  5. { name: 'styles', groups: [ 'styles' ] },
  6. { name: 'others', groups: [ 'others' ] },
  7. { name: 'forms', groups: [ 'forms' ] },
  8. { name: 'basicstyles', groups: [ 'basicstyles', 'cleanup' ] },
  9. { name: 'paragraph', groups: [ 'list', 'indent', 'blocks', 'align', 'bidi', 'paragraph' ] },
  10. { name: 'links', groups: [ 'links' ] },
  11. { name: 'insert', groups: [ 'insert' ] },
  12. { name: 'document', groups: [ 'mode', 'document', 'doctools' ] },
  13. { name: 'tools', groups: [ 'tools' ] },
  14. { name: 'colors', groups: [ 'colors' ] },
  15. { name: 'about', groups: [ 'about' ] }
  16. ];
  17. config.extraPlugins = 'video';
  18. config.removeButtons = 'Scayt,Anchor,PasteFromWord,PasteText,Paste,Copy,Cut,About';
  19. config.font_names='宋体/SimSun;新宋体/NSimSun;仿宋_GB2312/FangSong_GB2312;楷体_GB2312/KaiTi_GB2312;黑体/SimHei;微软雅黑/Microsoft YaHei;'+ config.font_names;
  20. };