config.js 1.3 KB

12345678910111213141516171819202122232425262728293031323334
  1. /**
  2. * @license Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved.
  3. * For licensing, see LICENSE.md 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 a single toolbar row.
  10. config.toolbarGroups = [
  11. { name: 'document', groups: [ 'mode', 'document', 'doctools' ] },
  12. { name: 'clipboard', groups: [ 'clipboard', 'undo' ] },
  13. { name: 'editing', groups: [ 'find', 'selection', 'spellchecker' ] },
  14. { name: 'forms' },
  15. { name: 'basicstyles', groups: [ 'basicstyles', 'cleanup' ] },
  16. { name: 'paragraph', groups: [ 'list', 'indent', 'blocks', 'align', 'bidi' ] },
  17. { name: 'links' },
  18. { name: 'insert' },
  19. { name: 'styles' },
  20. { name: 'colors' },
  21. { name: 'tools' },
  22. { name: 'others' },
  23. { name: 'about' }
  24. ];
  25. // The default plugins included in the basic setup define some buttons that
  26. // are not needed in a basic editor. They are removed here.
  27. config.removeButtons = 'Cut,Copy,Paste,Undo,Redo,Anchor,Underline,Strike,Subscript,Superscript';
  28. // Dialog windows are also simplified.
  29. config.removeDialogTabs = 'link:advanced';
  30. };