myconfig.js 8.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188
  1. /*
  2. * Dokeos - elearning and course management software
  3. *
  4. * Copyright (c) 2008-2009 Dokeos SPRL
  5. *
  6. * For a full list of contributors, see "credits.txt".
  7. * The full license can be read in "license.txt".
  8. *
  9. * This program is free software; you can redistribute it and/or
  10. * modify it under the terms of the GNU General Public License
  11. * as published by the Free Software Foundation; either version 2
  12. * of the License, or (at your option) any later version.
  13. *
  14. * See the GNU General Public License for more details.
  15. *
  16. * Contact address: Dokeos, rue du Corbeau, 108, B-1030 Brussels, Belgium
  17. * Mail: info@dokeos.com
  18. */
  19. FCKConfig.IMUploadPath = '';
  20. FCKConfig.FlashUploadPath = '' ;
  21. FCKConfig.AudioUploadPath = '' ;
  22. FCKConfig.UserStatus = 'teacher' ;
  23. FCKConfig.ToolbarSets["Question"] = [
  24. ['Source','DocProps','-','NewPage','Preview','-'],
  25. ['Undo','Redo','-','Find','Replace','-','SelectAll','RemoveFormat'],
  26. ['Bold','Italic','Underline','StrikeThrough','-','Subscript','Superscript'],
  27. ['OrderedList','UnorderedList','-','Outdent','Indent'],
  28. ['JustifyLeft','JustifyCenter','JustifyRight','JustifyFull'],
  29. ['Link','Unlink','Anchor'],
  30. ['Image','Flash','MP3','Table','Rule','Smiley','SpecialChar','UniversalKey'],
  31. ['Form','Checkbox','Radio','TextField','Textarea','Select','Button','ImageButton','HiddenField'],
  32. '/',
  33. ['Style','FontFormat','FontName','FontSize'],['Attachment']
  34. ] ;
  35. FCKConfig.ToolbarSets["Middle"] = [
  36. ['FontSize','Bold','Italic','Underline','StrikeThrough','TextColor','-','OrderedList','UnorderedList','-','Rule','Link','Unlink','Table','-','Image','Flash','Source']
  37. ] ;
  38. FCKConfig.ToolbarSets["Agenda"] = [
  39. ['FontSize','Bold','Italic','Underline','StrikeThrough','TextColor','-','OrderedList','UnorderedList','-','Rule','Link','Unlink','Table','-','Image']
  40. ] ;
  41. FCKConfig.ToolbarSets["Small"] = [
  42. ['Bold','Italic','Underline','StrikeThrough','Link','Unlink','Image','Flash','OrderedList','UnorderedList','Table']
  43. ] ;
  44. FCKConfig.ToolbarSets["Profil"] = [
  45. ['FitWindow','PasteWord','Undo','Redo'],
  46. ['Link','Image','imgmapPopup','flvPlayer','Flash','EmbedMovies','YouTube','Table','googlemaps'],
  47. ['Bold','Italic','Underline','OrderedList','UnorderedList','TextColor','-','Source']
  48. ] ;
  49. FCKConfig.ToolbarSets["Blog"] = [
  50. ['Bold','Italic','Underline','StrikeThrough','Link','Unlink','Image','OrderedList','UnorderedList','Table']
  51. ] ;
  52. FCKConfig.ToolbarSets["Announcements"] = [
  53. ['Bold','Italic','Underline','StrikeThrough','Link','Unlink','Image','OrderedList','UnorderedList','Table']
  54. ] ;
  55. FCKConfig.ToolbarSets["Full"] = [
  56. ['FitWindow','PasteWord','Link','Unlink','Anchor','-','Image','flvPlayer','Flash','EmbedMovies','MP3','YouTube','Table','Rule','-','Subscript', 'Superscript','-','OrderedList','UnorderedList','Outdent','Indent','-','JustifyLeft','JustifyCenter','JustifyRight','JustifyFull'],'/',['FontFormat','Style','FontName','FontSize','Bold','Italic','Underline','StrikeThrough','TextColor', 'BGColor','-','Source']
  57. ] ;
  58. FCKConfig.ToolbarSets["Comment"] = [
  59. ['Bold','Italic','Underline','StrikeThrough']
  60. ] ;
  61. FCKConfig.ToolbarSets["ForumLight"] = [
  62. ['Bold','Italic','Underline','StrikeThrough']
  63. ] ;
  64. FCKConfig.ToolbarSets["NewTest"] = [
  65. ['Bold','Italic','Underline','StrikeThrough','Link','Unlink','Image','Flash','MP3','OrderedList','UnorderedList','Table','Source']
  66. ] ;
  67. FCKConfig.ToolbarSets["TestComment"] = [
  68. ['FontName','FontSize','TextColor','BGColor'],['Bold','Italic','Underline','StrikeThrough','Subscript', 'Superscript','Link','Unlink','Image','Flash','MP3','OrderedList','UnorderedList','Table','Source']
  69. ] ;
  70. FCKConfig.ToolbarSets["Test"] = [
  71. ['Bold','Italic','Underline','StrikeThrough','Subscript','Superscript','Link','Unlink','Image','MP3','OrderedList','UnorderedList','Table']
  72. ] ;
  73. FCKConfig.ToolbarSets["Survey"] = [
  74. ['FontSize','Bold','Italic','TextColor','-','OrderedList','UnorderedList','-','Rule','Link','Unlink','Table','-','Image','Source']
  75. ] ;
  76. FCKConfig.ToolbarSets["CourseDescription"] = [
  77. ['NewPage','Templates','Save','PageBreak','Preview','FitWindow','-','PasteText','PasteWord','-','Undo','Redo','-','SelectAll','RemoveFormat','-','Find'],
  78. ['Link','Unlink','Anchor'],
  79. ['Image','imgmapPopup','flvPlayer','Flash','EmbedMovies','YouTube','MP3'],
  80. ['Table','CreateDiv','Rule','Smiley','SpecialChar','googlemaps'],
  81. ['FontFormat','FontName','FontSize'],
  82. ['Bold','Italic','Underline','StrikeThrough'],
  83. ['Subscript','Superscript','-','JustifyLeft','JustifyCenter','JustifyRight','JustifyFull','-','OrderedList','UnorderedList','-','Outdent','Indent','-','TextColor','BGColor'],
  84. ['Source']
  85. ] ;
  86. FCKConfig.ToolbarSets["Wiki"] = [
  87. ['NewPage','Templates','Save','PageBreak','Preview','FitWindow','-','PasteText','PasteWord','-','Undo','Redo','-','SelectAll','RemoveFormat','-','Find'],
  88. ['Wikilink','Link','Unlink','Anchor'],
  89. ['Image','imgmapPopup','flvPlayer','Flash','EmbedMovies','YouTube','MP3'],
  90. ['Table','CreateDiv','Rule','Smiley','SpecialChar','googlemaps'],
  91. ['FontFormat','FontName','FontSize'],
  92. ['Bold','Italic','Underline','StrikeThrough'],
  93. ['Subscript','Superscript','-','JustifyLeft','JustifyCenter','JustifyRight','JustifyFull','-','OrderedList','UnorderedList','-','Outdent','Indent','-','TextColor','BGColor'],
  94. ['Source']
  95. ] ;
  96. var sOtherPluginPath = FCKConfig.BasePath.substr(0, FCKConfig.BasePath.length - 7) + 'editor/plugins/' ;
  97. // Plugins
  98. //Added by Ivan Tcholakov, 18-DEC-2008.
  99. FCKConfig.Plugins.Add( "customizations" ) ;
  100. FCKConfig.Plugins.Add( "dragresizetable" ) ;
  101. FCKConfig.Plugins.Add( "tablecommands" ) ;
  102. /*
  103. FCKConfig.Plugins.Add("Video", "en", sOtherPluginPath ) ;
  104. FCKConfig.Plugins.Add("Attachment", "en", sOtherPluginPath ) ;*/
  105. // added by Julio Montoya
  106. FCKConfig.Plugins.Add("MP3", "en", sOtherPluginPath ) ;
  107. //FCKConfig.Plugins.Add('audio', 'en,af,ar,bg,bn,bs,ca,cs,da,de,el,en-au,en-ca,en-uk,eo,es,et,eu,fa,fi,fo,fr-ca,fr,gl,gu,he,hi,hr,hu,is,it,ja,km,ko,lt,lv,mn,ms,nb,nl,no,pl,pt-br,pt,ro,ru,sk,sl,sr-latn,sr,sv,th,tr,uk,vi,zh-cn,zh') ;
  108. FCKConfig.Plugins.Add('ImageManager','en') ;
  109. FCKConfig.Plugins.Add('flvPlayer','en') ;
  110. //FCKConfig.Plugins.Add("Flash", "en");
  111. FCKConfig.Plugins.Add('fckEmbedMovies');
  112. // added by Juan Carlos Ra�a
  113. FCKConfig.Plugins.Add("mimetex", "en", sOtherPluginPath ) ;
  114. FCKConfig.Plugins.Add("wikilink", "en,es", sOtherPluginPath ) ;
  115. FCKConfig.Plugins.Add("imgmap", "en,es", sOtherPluginPath );
  116. FCKConfig.Plugins.Add("googlemaps", "en,es", sOtherPluginPath ) ;
  117. // This key is for http://localhost. You must get one for each server where you want to use the plugin,
  118. // just get the key for free here after agreeing to the Terms of Use of the GoogleMaps API:
  119. // http://www.google.com/apis/maps/signup.html. // If you leave an empty string then the toolbar icon won't be shown.
  120. FCKConfig.GoogleMaps_Key = 'ABQIAAAAlXu5Pw6DFAUgqM2wQn01gxT2yXp_ZAY8_ufC3CFXhHIE1NvwkxSy5hTGQdsosYD3dz6faZHVrO-02A';
  121. //Added by Ivan Tcholakov, 19-DEC-2008.
  122. FCKConfig.Plugins.Add('youtube', 'en,af,ar,bg,bn,bs,ca,cs,da,de,el,en-au,en-ca,en-uk,eo,es,et,eu,fa,fi,fo,fr-ca,fr,gl,gu,he,hi,hr,hu,is,it,ja,km,ko,lt,lv,mn,ms,nb,nl,no,pl,pt-br,pt,ro,ru,sk,sl,sr-latn,sr,sv,th,tr,uk,vi,zh-cn,zh') ;
  123. // reduce format list
  124. FCKConfig.FontFormats = 'p;h1;h2;h3;h4;h5' ;
  125. /////////////////////////////////////////////////////////////////////// moved from fckconfig.js
  126. FCKConfig.LinkBrowser = true ;
  127. FCKConfig.LinkBrowserWindowWidth = 782;
  128. FCKConfig.LinkBrowserWindowHeight = 490;
  129. FCKConfig.ImageBrowser = true ;
  130. FCKConfig.ImageBrowserWindowWidth = 782;
  131. FCKConfig.ImageBrowserWindowHeight = 490;
  132. FCKConfig.FlashBrowser = true ;
  133. FCKConfig.FlashBrowserWindowWidth = 782;
  134. FCKConfig.FlashBrowserWindowHeight = 490;
  135. FCKConfig.MediaBrowser = true ;
  136. FCKConfig.MediaBrowserWindowWidth = 782;
  137. FCKConfig.MediaBrowserWindowHeight= 490;
  138. FCKConfig.MP3Browser = true ;
  139. FCKConfig.MP3BrowserWindowWidth = 782;
  140. FCKConfig.MP3BrowserWindowHeight = 490;
  141. FCKConfig.LinkUpload = true ;
  142. FCKConfig.LinkUploadURL = FCKConfig.BasePath + 'filemanager/connectors/' + _QuickUploadLanguage + '/upload.' + _QuickUploadExtension ;
  143. FCKConfig.LinkUploadAllowedExtensions = ".(7z|aiff|asf|avi|bmp|csv|doc|fla|flv|gif|gz|gzip|jpeg|jpg|mid|mov|mp3|mp4|mpc|mpeg|mpg|ods|odt|pdf|png|ppt|pxd|qt|ram|rar|rm|rmi|rmvb|rtf|sdc|sitd|swf|sxc|sxw|tar|tgz|tif|tiff|txt|vsd|wav|wma|wmv|xls|xml|zip)$" ; // empty for all
  144. FCKConfig.LinkUploadDeniedExtensions = "" ; // empty for no one
  145. FCKConfig.ImageUpload = true ;
  146. FCKConfig.ImageUploadURL = FCKConfig.BasePath + 'filemanager/connectors/' + _QuickUploadLanguage + '/upload.' + _QuickUploadExtension + '?Type=Image' ;
  147. FCKConfig.ImageUploadAllowedExtensions = ".(jpg|gif|jpeg|png|bmp)$" ; // empty for all
  148. FCKConfig.ImageUploadDeniedExtensions = "" ; // empty for no one
  149. FCKConfig.FlashUpload = true ;
  150. FCKConfig.MP3Upload = true ;
  151. FCKConfig.MP3UploadAllowedExtensions = ".(mp3)$" ; // empty for all
  152. FCKConfig.MP3UploadDeniedExtensions = "" ; // empty for no one