config.js 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. /**
  2. * @license Copyright (c) 2003-2015, 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 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. '/',
  20. { name: 'basicstyles', groups: [ 'basicstyles', 'cleanup' ] },
  21. { name: 'paragraph', groups: [ 'list', 'indent', 'blocks', 'align', 'bidi' ] },
  22. { name: 'styles' },
  23. { name: 'colors' },
  24. { name: 'about' }
  25. ];
  26. // Remove some buttons provided by the standard plugins, which are
  27. // not needed in the Standard(s) toolbar.
  28. config.removeButtons = 'Underline,Subscript,Superscript';
  29. // Set the most common block elements.
  30. config.format_tags = 'p;h1;h2;h3;pre';
  31. // Simplify the dialog windows.
  32. config.removeDialogTabs = 'image:advanced;link:advanced';
  33. };