cke_editor_delivery_config.js 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. /**
  2. * Licensed Materials - Property of IBM
  3. *
  4. * IBM Cognos Products: SHARE
  5. *
  6. * Copyright IBM Corp. 2015, 2018
  7. *
  8. * US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
  9. */
  10. CKEDITOR.editorConfig = function( config ) {
  11. // The toolbar groups arrangement, optimized for two toolbar rows.
  12. config.toolbarGroups = [
  13. { name: 'clipboard', groups: [ 'clipboard', 'undo' ] },
  14. { name: 'editing', groups: [ 'find', 'selection', 'spellchecker' ] },
  15. { name: 'links' },
  16. { name: 'insert' },
  17. { name: 'forms' },
  18. { name: 'document', groups: [ 'mode', 'document', 'doctools' ] },
  19. { name: 'others' },
  20. { name: 'basicstyles', groups: [ 'basicstyles', 'cleanup' ] },
  21. { name: 'styles' },
  22. { name: 'paragraph', groups: [ 'list', 'indent', 'blocks', 'align', 'bidi' ] },
  23. { name: 'colors' },
  24. { name: 'tools' }
  25. ];
  26. // Remove unnecessary buttons.
  27. config.removeButtons = 'Anchor,Styles,PasteFromWord,PasteText,Subscript,Superscript,Source';
  28. config.removePlugins = 'elementspath';
  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. // Enable collapse/collapsed by default.
  34. config.toolbarCanCollapse = true;
  35. config.toolbarStartupExpanded = false;
  36. config.skin = '../../../../js/schedule/utils/ckeditor_delivery_skin';
  37. };