admin_panels.php 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. <?php
  2. /* For licensing terms, see /license.txt */
  3. /**
  4. * AdminPanels FCKEditor's toolbar
  5. * For more information: http://docs.fckeditor.net/FCKeditor_2.x/Developers_Guide/Configuration/Configuration_Options
  6. * @author Angel Fernando Quiroz Campos <angel.quiroz@beeznest.com>
  7. * @package chamilo
  8. */
  9. // Hide/show SpellCheck buttom
  10. if ((api_get_setting('allow_spellcheck') == 'true')) {
  11. $VSpellCheck = 'SpellCheck';
  12. } else {
  13. $VSpellCheck = '';
  14. }
  15. // This is the visible toolbar set when the editor has "normal" size.
  16. $config['ToolbarSets']['Normal'] = array(
  17. array('NewPage', '-', 'PasteWord'),
  18. array('Undo', 'Redo'),
  19. array('Link', 'Image', 'flvPlayer', 'Flash', 'MP3', 'mimetex'),
  20. '/',
  21. array('Bold', 'Italic', 'Underline', 'TextColor', 'BGColor'),
  22. array('UnorderedList', 'OrderedList', 'Rule'),
  23. array('JustifyLeft', 'JustifyCenter', 'JustifyRight', 'JustifyFull'),
  24. array('FontFormat', 'FontName', 'FontSize'),
  25. array('FitWindow')
  26. );
  27. // Sets whether the toolbar can be collapsed/expanded or not.
  28. // Possible values: true , false
  29. $config['ToolbarCanCollapse'] = true;
  30. // Sets how the editor's toolbar should start - expanded or collapsed.
  31. // Possible values: true , false
  32. $config['ToolbarStartExpanded'] = false;
  33. //This option sets the location of the toolbar.
  34. // Possible values: 'In' , 'None' , 'Out:[TargetId]' , 'Out:[TargetWindow]([TargetId])'
  35. //$config['ToolbarLocation'] = 'In';
  36. // A setting for blocking copy/paste functions of the editor.
  37. // This setting activates on leaners only. For users with other statuses there is no blocking copy/paste.
  38. // Possible values: true , false
  39. //$config['BlockCopyPaste'] = false;
  40. // Here new width and height of the editor may be set.
  41. // Possible values, examples: 300 , '250' , '100%' , ...
  42. //$config['Width'] = '100%';
  43. //$config['Height'] = '400';