wiki.php 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. <?php
  2. // Chamilo LMS
  3. // See license terms in chamilo/documentation/license.txt
  4. // Training tools
  5. // Wiki
  6. // For more information: http://docs.fckeditor.net/FCKeditor_2.x/Developers_Guide/Configuration/Configuration_Options
  7. // Hide/show SpellCheck buttom
  8. if ((api_get_setting('allow_spellcheck') == 'true')) {
  9. $VSpellCheck='SpellCheck';
  10. }
  11. else{
  12. $VSpellCheck='';
  13. }
  14. // This is the visible toolbar set when the editor has "normal" size.
  15. $config['ToolbarSets']['Normal'] = array(
  16. array('FitWindow','Save','NewPage','Templates','PageBreak','Preview','-','PasteText','-','Undo','Redo','-','SelectAll','-','Find'),
  17. array('Wikilink','Link','Unlink','Anchor'),
  18. array('Image','flvPlayer','Flash','EmbedMovies','YouTube','MP3','mimetex','asciimath','fckeditor_wiris_openFormulaEditor','fckeditor_wiris_openCAS'),
  19. array('Table','Rule','Smiley','SpecialChar','googlemaps'),
  20. array('FontFormat','FontName','FontSize'),
  21. array('Bold','Italic','Underline'),
  22. array('Subscript','Superscript','-','JustifyLeft','JustifyCenter','JustifyRight','JustifyFull','-','OrderedList','UnorderedList','-','Outdent','Indent','-','TextColor','BGColor', $VSpellCheck),
  23. array('Source')
  24. );
  25. // This is the visible toolbar set when the editor is maximized.
  26. // If it has not been defined, then the toolbar set for the "normal" size is used.
  27. /*
  28. $config['ToolbarSets']['Maximized'] = array(
  29. array('FitWindow','-') // ...
  30. );
  31. */
  32. // Sets whether the toolbar can be collapsed/expanded or not.
  33. // Possible values: true , false
  34. //$config['ToolbarCanCollapse'] = true;
  35. // Sets how the editor's toolbar should start - expanded or collapsed.
  36. // Possible values: true , false
  37. //$config['ToolbarStartExpanded'] = true;
  38. //This option sets the location of the toolbar.
  39. // Possible values: 'In' , 'None' , 'Out:[TargetId]' , 'Out:[TargetWindow]([TargetId])'
  40. //$config['ToolbarLocation'] = 'In';
  41. // A setting for blocking copy/paste functions of the editor.
  42. // This setting activates on leaners only. For users with other statuses there is no blocking copy/paste.
  43. // Possible values: true , false
  44. //$config['BlockCopyPaste'] = false;
  45. // A setting for force paste as plain text.
  46. if ((api_get_setting('force_wiki_paste_as_plain_text') == 'true')) {
  47. $config['ForcePasteAsPlainText'] = true;
  48. }
  49. else{
  50. $config['ForcePasteAsPlainText'] = false;
  51. }
  52. // Here new width and height of the editor may be set.
  53. // Possible values, examples: 300 , '250' , '100%' , ...
  54. //$config['Width'] = '100%';
  55. //$config['Height'] = '400';