config.js 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. /**
  2. * @license Copyright (c) 2003-2014, 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: 'basicstyles', groups: ['basicstyles', 'cleanup'] },
  12. { name: 'paragraph', groups: ['list', 'indent', 'blocks', 'align', 'bidi'] },
  13. { name: 'links' },
  14. { name: 'styles' },
  15. { name: 'colors' },
  16. { name: 'insert' },
  17. { name: 'forms' },
  18. { name: 'document', groups: ['mode', 'document', 'doctools'] },
  19. { name: 'tools' },
  20. { name: 'others' }
  21. ];
  22. // Remove some buttons provided by the standard plugins, which are
  23. // not needed in the Standard(s) toolbar.
  24. config.removeButtons = 'Underline,Subscript,Superscript,buttons';
  25. // Set the most common block elements.
  26. config.format_tags = 'p;h1;h2;h3;pre';
  27. // Simplify the dialog windows.
  28. config.removeDialogTabs = 'image:advanced;link:advanced';
  29. config.removePlugins = 'elementspath';
  30. config.resize_enabled = false;
  31. config.filebrowserImageUploadUrl = top.contentPath + "/ResourceManage/Notice/UploadImage";
  32. };