config.js 3.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  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. // Define changes to default configuration here.
  8. // http://docs.cksource.com/CKEditor_3.x/Developers_Guide
  9. // http://docs.cksource.com/ckeditor_api/symbols/CKEDITOR.config.html
  10. config.enterMode = CKEDITOR.ENTER_BR;
  11. config.resize_enabled = false;
  12. //config.resize_maxHeight = 3000;
  13. //config.resize_maxWidth = 3000;
  14. //config.height = '300px';
  15. //config.resize_dir = 'vertical'; // horizontal, vertical, both
  16. config.removePlugins = 'elementspath,save'; // config.removePlugins = 'elementspath,save,font';
  17. config.removeDialogTabs = 'flash:advanced'; // config.removeDialogTabs = 'flash:advanced;image:Link';
  18. config.protectedSource.push( /<\?[\s\S]*?\?>/g ); // Prevent PHP Code to be formatted
  19. //config.menu_groups = 'clipboard,table,anchor,link,image'; // for context menu 'clipboard,form,tablecell,tablecellproperties,tablerow,tablecolumn,table,anchor,link,image,flash,checkbox,radio,textfield,hiddenfield,imagebutton,button,select,textarea'
  20. //config.language = 'de';
  21. //config.defaultLanguage = 'en';
  22. //config.contentsLanguage = 'fr';
  23. config.fullPage = false; // Not a full html page string, just part of it
  24. config.dialog_backgroundCoverColor = 'rgb(255, 254, 253)';
  25. //config.contentsCss = '/css/mysitestyles.css';
  26. config.image_previewText=' '; // Must no be empty
  27. config.toolbar_Full =
  28. [
  29. ['Templates','NewPage'],
  30. ['Save'],
  31. ['Source','Maximize','Preview'],
  32. ['Cut','Copy','Paste','PasteText','PasteFromWord','-','Print', 'SpellChecker', 'Scayt'],
  33. ['Undo','Redo','-','Find','Replace','-','SelectAll','RemoveFormat'],
  34. ['Form', 'Checkbox', 'Radio', 'TextField', 'Textarea', 'Select', 'Button', 'ImageButton', 'HiddenField'],
  35. ['Bold','Italic','Underline','Strike','-','Subscript','Superscript'],
  36. ['NumberedList','BulletedList','-','Outdent','Indent','Blockquote','CreateDiv'],
  37. ['JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock'],
  38. ['BidiLtr', 'BidiRtl'],
  39. ['Link','Unlink','Anchor'],
  40. ['Image','Flash','Table','HorizontalRule','Smiley','SpecialChar','PageBreak','Iframe'],
  41. ['Styles','Format','Font','FontSize'],
  42. ['TextColor','BGColor'],
  43. ['Maximize', 'ShowBlocks','-','About']
  44. ];
  45. // Used for mailing fields
  46. config.toolbar_dolibarr_mailings =
  47. [
  48. ['Source','Maximize'],
  49. ['Cut','Copy','Paste','-','SpellChecker'],
  50. ['Undo','Redo','-','Find','Replace'],
  51. ['Format','Font','FontSize'],
  52. ['Bold','Italic','Underline','Strike','Subscript','Superscript','-','TextColor','RemoveFormat'],
  53. ['NumberedList','BulletedList','Outdent','Indent','CreateDiv'],
  54. ['JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock'],
  55. ['Link','Unlink','Anchor','Image','Table','HorizontalRule','SpecialChar']
  56. ];
  57. // Used for notes fields
  58. config.toolbar_dolibarr_notes =
  59. [
  60. ['Source','Maximize'],
  61. ['Cut','Copy','Paste','-','SpellChecker'],
  62. ['Undo','Redo','-','Find','Replace'],
  63. ['Format','Font','FontSize'],
  64. ['Bold','Italic','Underline','Strike','Subscript','Superscript','-','TextColor','RemoveFormat'],
  65. ['NumberedList','BulletedList','Outdent','Indent'],
  66. ['JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock'],
  67. ['Link','Unlink','Image','Table','HorizontalRule','SpecialChar']
  68. ];
  69. // Used for details lines
  70. config.toolbar_dolibarr_details =
  71. [
  72. ['Source','Maximize'],
  73. ['Cut','Copy','Paste','-','SpellChecker'],
  74. ['Format','Font','FontSize'],
  75. ['Bold','Italic','Underline','Strike','Subscript','Superscript','-','TextColor','RemoveFormat'],
  76. ['NumberedList','BulletedList','Outdent','Indent'],
  77. ['JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock'],
  78. ['Link','Unlink','SpecialChar']
  79. ];
  80. // Used for mailing fields
  81. config.toolbar_dolibarr_readonly =
  82. [
  83. ['Source','Maximize'],
  84. ['Find']
  85. ];
  86. };