test_answer_feedback.php 3.3 KB

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