config.js 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. /**
  2. * @license Copyright (c) 2003-2013, 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 the complete reference:
  8. // http://docs.ckeditor.com/#!/api/CKEDITOR.config
  9. // The toolbar groups arrangement, optimized for two toolbar rows.
  10. config.toolbarGroups = [
  11. { name: 'clipboard', groups: [ 'clipboard', 'undo' ] },
  12. { name: 'editing', groups: [ 'find', 'selection', 'spellchecker' ] },
  13. { name: 'links' },
  14. { name: 'insert' },
  15. { name: 'forms' },
  16. { name: 'tools' },
  17. { name: 'document', groups: [ 'mode', 'document', 'doctools' ] },
  18. { name: 'others' },
  19. 'index.html',
  20. { name: 'basicstyles', groups: [ 'basicstyles', 'cleanup' ] },
  21. { name: 'paragraph', groups: [ 'list', 'indent', 'blocks', 'align', 'bidi' ] },
  22. { name: 'styles' },
  23. { name: 'colors' }
  24. ];
  25. // Remove some buttons, provided by the standard plugins, which we don't
  26. // need to have in the Standard(s) toolbar.
  27. config.removeButtons = 'help';
  28. // Se the most common block elements.
  29. config.format_tags = 'p;h1;h2;h3;pre';
  30. // Make dialogs simpler.
  31. config.removeDialogTabs = 'image:advanced;link:advanced';
  32. };