work.php 3.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. <?php
  2. // Chamilo LMS
  3. // See license terms in chamilo/documentation/license.txt
  4. // Work tool
  5. // For more information: http://docs.fckeditor.net/FCKeditor_2.x/Developers_Guide/Configuration/Configuration_Options
  6. //NOTE: Does not include Replace because it is redundant, being in the same tab to Find. Usability: doenst show save buttom
  7. //TODO: DocProps does not run ok here. Also 'asciisvg' buttom (their presence means that not all forms can unfold and refold)
  8. // Hide/show SpellCheck buttom
  9. if ((api_get_setting('allow_spellcheck') == 'true')) {
  10. $VSpellCheck='SpellCheck';
  11. }
  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','Templates','-','PasteWord'),
  18. array('Undo','Redo'),
  19. array('Link','Image','flvPlayer','Flash','MP3','TableOC','mimetex','asciimath'),
  20. array('JustifyLeft','JustifyCenter','JustifyFull'),
  21. array('FontFormat','FontName','Bold','Italic','TextColor','BGColor'),
  22. array('FitWindow')
  23. );
  24. // This is the visible toolbar set when the editor is maximized.
  25. // If it has not been defined, then the toolbar set for the "normal" size is used.
  26. $config['ToolbarSets']['Maximized'] = array(
  27. array('NewPage','Templates','-','Preview','Print'),
  28. array('Cut','Copy','Paste','PasteText','PasteWord'),
  29. array('Undo','Redo','-','SelectAll','Find','-','RemoveFormat'),
  30. array('Link','Unlink','Anchor','Glossary'),
  31. array('Image','imgmapPopup','flvPlayer','EmbedMovies','YouTube','Flash','MP3','googlemaps','Smiley','SpecialChar','insertHtml','mimetex','asciimath','fckeditor_wiris_openFormulaEditor','fckeditor_wiris_openCAS'),
  32. '/',
  33. array('TableOC','Table','TableInsertRowAfter','TableDeleteRows','TableInsertColumnAfter','TableDeleteColumns','TableInsertCellAfter','TableDeleteCells','TableMergeCells','TableHorizontalSplitCell','TableVerticalSplitCell','TableCellProp','-','CreateDiv'),
  34. array('UnorderedList','OrderedList','Rule','-','Outdent','Indent','Blockquote'),
  35. array('JustifyLeft','JustifyCenter','JustifyRight','JustifyFull'),
  36. array('Bold','Italic','Underline','StrikeThrough','-','Subscript','Superscript','-','TextColor','BGColor'),
  37. array($VSpellCheck),
  38. array('Style','FontFormat','FontName','FontSize'),
  39. array('PageBreak','ShowBlocks','Source'),
  40. array('FitWindow')
  41. );
  42. // Sets whether the toolbar can be collapsed/expanded or not.
  43. // Possible values: true , false
  44. //$config['ToolbarCanCollapse'] = true;
  45. // Sets how the editor's toolbar should start - expanded or collapsed.
  46. // Possible values: true , false
  47. $config['ToolbarStartExpanded'] = false;
  48. //This option sets the location of the toolbar.
  49. // Possible values: 'In' , 'None' , 'Out:[TargetId]' , 'Out:[TargetWindow]([TargetId])'
  50. //$config['ToolbarLocation'] = 'In';
  51. // A setting for blocking copy/paste functions of the editor.
  52. // This setting activates on leaners only. For users with other statuses there is no blocking copy/paste.
  53. // Possible values: true , false
  54. //$config['BlockCopyPaste'] = false;
  55. // Here new width and height of the editor may be set.
  56. // Possible values, examples: 300 , '250' , '100%' , ...
  57. //$config['Width'] = '100%';
  58. //$config['Height'] = '130';