config.js 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. /*
  2. Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved.
  3. For licensing, see LICENSE.html or http://ckeditor.com/license
  4. */
  5. CKEDITOR.editorConfig = function( config )
  6. {
  7. //config.customConfig // to ovveride config.js
  8. // The language will be set from within iTop, depending on the current user
  9. // config.language = 'de'; // german
  10. // config.contentsLanguage = 'de'; // german
  11. // Make it more concise for iTop forms
  12. config.removePlugins = 'elementspath';
  13. config.toolbarStartupExpanded = false;
  14. config.toolbar = 'itop';
  15. //config.toolbar_basic
  16. //config.toolbar_Full
  17. config.toolbar_itop =
  18. [
  19. ['Source'],
  20. ['Cut','Copy','Paste','PasteText','PasteFromWord','-','Print'],
  21. ['Undo','Redo','-','Find','Replace','-','SelectAll','RemoveFormat'],
  22. '/',
  23. ['Bold','Italic','Underline','Strike'],
  24. ['NumberedList','BulletedList','-','Outdent','Indent'],
  25. ['JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock'],
  26. ['Link','Unlink','Anchor'],
  27. ['Image','Table','HorizontalRule','Smiley','SpecialChar','PageBreak'],
  28. '/',
  29. ['Styles','Format','Font','FontSize'],
  30. ['TextColor','BGColor'],
  31. ['Maximize', 'ShowBlocks','-','About']
  32. ];
  33. config.toolbar_Full =
  34. [
  35. ['Source','-','Save','NewPage','Preview','-','Templates'],
  36. ['Cut','Copy','Paste','PasteText','PasteFromWord','-','Print', 'SpellChecker', 'Scayt'],
  37. ['Undo','Redo','-','Find','Replace','-','SelectAll','RemoveFormat'],
  38. ['Form', 'Checkbox', 'Radio', 'TextField', 'Textarea', 'Select', 'Button', 'ImageButton', 'HiddenField'],
  39. '/',
  40. ['Bold','Italic','Underline','Strike','-','Subscript','Superscript'],
  41. ['NumberedList','BulletedList','-','Outdent','Indent','Blockquote','CreateDiv'],
  42. ['JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock'],
  43. ['BidiLtr', 'BidiRtl' ],
  44. ['Link','Unlink','Anchor'],
  45. ['Image','Flash','Table','HorizontalRule','Smiley','SpecialChar','PageBreak'],
  46. '/',
  47. ['Styles','Format','Font','FontSize'],
  48. ['TextColor','BGColor'],
  49. ['Maximize', 'ShowBlocks','-','About']
  50. ];
  51. // Little value and even disturbing when it comes to describing very technical stuff
  52. config.disableNativeSpellChecker = true;
  53. // Handling of doc/image uploads
  54. // config.filebrowserImageUploadUrl
  55. // config.filebrowserUploadUrl
  56. // + it is possible to define the supported tags (p, pre, etc) and the corresponding class.
  57. };