myconfig.js 9.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179
  1. FCKConfig.IMUploadPath = '';
  2. FCKConfig.FlashUploadPath = '' ;
  3. FCKConfig.AudioUploadPath = '' ;
  4. FCKConfig.UserStatus = 'teacher' ;
  5. FCKConfig.ToolbarSets["Question"] = [
  6. ['Source','DocProps','-','NewPage','Preview','-'],
  7. ['Undo','Redo','-','Find','Replace','-','SelectAll','RemoveFormat'],
  8. ['Bold','Italic','Underline','StrikeThrough','-','Subscript','Superscript'],
  9. ['OrderedList','UnorderedList','-','Outdent','Indent'],
  10. ['JustifyLeft','JustifyCenter','JustifyRight','JustifyFull'],
  11. ['Link','Unlink','Anchor'],
  12. ['ImageManager','Flash','MP3','Table','Rule','Smiley','SpecialChar','UniversalKey'],
  13. ['Form','Checkbox','Radio','TextField','Textarea','Select','Button','ImageButton','HiddenField'],
  14. '/',
  15. ['Style','FontFormat','FontName','FontSize'],['Attachment']
  16. ] ;
  17. FCKConfig.ToolbarSets["Middle"] = [
  18. ['Source','FontSize','Bold','Italic','Underline','StrikeThrough','TextColor','-','OrderedList','UnorderedList','-','Rule','Link','Unlink','Table','-','ImageManager','Flash']
  19. ] ;
  20. FCKConfig.ToolbarSets["Agenda"] = [
  21. ['FontSize','Bold','Italic','Underline','StrikeThrough','TextColor','-','OrderedList','UnorderedList','-','Rule','Link','Unlink','Table','-','ImageManager']
  22. ] ;
  23. FCKConfig.ToolbarSets["Small"] = [
  24. ['Bold','Italic','Underline','StrikeThrough','Link','Unlink','ImageManager','Flash','OrderedList','UnorderedList','Table']
  25. ] ;
  26. FCKConfig.ToolbarSets["Profil"] = [
  27. ['Bold','Italic','Underline','StrikeThrough','Link','Unlink','OrderedList','UnorderedList']
  28. ] ;
  29. FCKConfig.ToolbarSets["Blog"] = [
  30. ['Bold','Italic','Underline','StrikeThrough','Link','Unlink','ImageManager','OrderedList','UnorderedList','Table']
  31. ] ;
  32. FCKConfig.ToolbarSets["Announcements"] = [
  33. ['Bold','Italic','Underline','StrikeThrough','Link','Unlink','ImageManager','OrderedList','UnorderedList','Table']
  34. ] ;
  35. FCKConfig.ToolbarSets["Full"] = [
  36. ['FitWindow','PasteWord','Link','Unlink','Anchor','-','ImageManager','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']
  37. ] ;
  38. FCKConfig.ToolbarSets["Comment"] = [
  39. ['Bold','Italic','Underline','StrikeThrough']
  40. ] ;
  41. FCKConfig.ToolbarSets["ForumLight"] = [
  42. ['Bold','Italic','Underline','StrikeThrough']
  43. ] ;
  44. FCKConfig.ToolbarSets["NewTest"] = [
  45. ['Source','Bold','Italic','Underline','StrikeThrough','Link','Unlink','ImageManager','Flash','MP3','OrderedList','UnorderedList','Table']
  46. ] ;
  47. FCKConfig.ToolbarSets["TestComment"] = [
  48. ['Source','FontName','FontSize','TextColor','BGColor'],['Bold','Italic','Underline','StrikeThrough','Subscript', 'Superscript','Link','Unlink','ImageManager','Flash','MP3','OrderedList','UnorderedList','Table']
  49. ] ;
  50. FCKConfig.ToolbarSets["Test"] = [
  51. ['Bold','Italic','Underline','StrikeThrough','Subscript','Superscript','Link','Unlink','ImageManager','MP3','OrderedList','UnorderedList','Table']
  52. ] ;
  53. FCKConfig.ToolbarSets["Survey"] = [
  54. ['FontSize','Bold','Italic','TextColor','-','OrderedList','UnorderedList','-','Rule','Link','Unlink','Table','-','ImageManager','Source']
  55. ] ;
  56. FCKConfig.ToolbarSets["Wiki"] = [
  57. ['NewPage','Templates','Save','Print','PageBreak','Preview','ShowBlocks','-','Cut','Copy','Paste','PasteText','PasteWord','-','Undo','Redo','-','SelectAll','RemoveFormat','-','Find'],
  58. ['Wikilink','Link','Unlink','Anchor','-','ImageManager','imgmapPopup','flvPlayer','Flash','EmbedMovies','MP3','Table','Rule','Smiley','SpecialChar','googlemaps'],
  59. ['FontFormat','FontName','FontSize'],
  60. ['Bold','Italic','Underline','StrikeThrough','-','Subscript','Superscript','-','JustifyLeft','JustifyCenter','JustifyRight','JustifyFull','-','OrderedList','UnorderedList','-','Outdent','Indent','-','TextColor','BGColor'],
  61. ['FitWindow']
  62. ] ;
  63. var sOtherPluginPath = FCKConfig.BasePath.substr(0, FCKConfig.BasePath.length - 7) + 'editor/plugins/' ;
  64. // Plugins
  65. //Added by Ivan Tcholakov, 18-DEC-2008.
  66. FCKConfig.Plugins.Add( "customizations" ) ;
  67. FCKConfig.Plugins.Add( "dragresizetable" ) ;
  68. FCKConfig.Plugins.Add( "tablecommands" ) ;
  69. /*
  70. FCKConfig.Plugins.Add("Video", "en", sOtherPluginPath ) ;
  71. FCKConfig.Plugins.Add("Attachment", "en", sOtherPluginPath ) ;*/
  72. // added by Julio Montoya
  73. FCKConfig.Plugins.Add("MP3", "en", sOtherPluginPath ) ;
  74. FCKConfig.Plugins.Add('ImageManager','en') ;
  75. FCKConfig.Plugins.Add('flvPlayer','en') ;
  76. FCKConfig.Plugins.Add("Flash", "en");
  77. FCKConfig.Plugins.Add('fckEmbedMovies');
  78. FCKConfig.Plugins.Add("wikilink", "en,es", sOtherPluginPath ) ; // support to english, spanish
  79. FCKConfig.Plugins.Add("imgmap", "en,es", sOtherPluginPath );
  80. FCKConfig.Plugins.Add("googlemaps", "en,es", sOtherPluginPath ) ;
  81. // This key is for http://localhost. You must get one for each server where you want to use the plugin,
  82. // just get the key for free here after agreeing to the Terms of Use of the GoogleMaps API:
  83. // http://www.google.com/apis/maps/signup.html. // If you leave an empty string then the toolbar icon won't be shown.
  84. FCKConfig.GoogleMaps_Key = 'ABQIAAAAlXu5Pw6DFAUgqM2wQn01gxT2yXp_ZAY8_ufC3CFXhHIE1NvwkxSy5hTGQdsosYD3dz6faZHVrO-02A';
  85. //Added by Ivan Tcholakov, 19-DEC-2008.
  86. FCKConfig.Plugins.Add( 'youtube', 'en' ) ;
  87. // reduce format list
  88. FCKConfig.FontFormats = 'p;h1;h2;h3;h4;h5' ;
  89. /////////////////////////////////////////////////////////////////////// moved from fckconfig.js
  90. FCKConfig.LinkBrowser = true ;
  91. //
  92. //FCKConfig.LinkBrowserURL = FCKConfig.BasePath + 'filemanager/browser/default/browser.html?Connector=' + encodeURIComponent( FCKConfig.BasePath + 'filemanager/connectors/' + _FileBrowserLanguage + '/connector.' + _FileBrowserExtension ) ;
  93. //
  94. FCKConfig.LinkBrowserWindowWidth = FCKConfig.ScreenWidth * 0.7 ; // 70%
  95. FCKConfig.LinkBrowserWindowHeight = FCKConfig.ScreenHeight * 0.7 ; // 70%
  96. FCKConfig.ImageBrowser = true ;
  97. // this is set in the main/inc/lib/formvalidator/Element/html_editor.php file very hard to find!!
  98. //FCKConfig.ImageBrowserURL = FCKConfig.BasePath + 'filemanager/browser/default/browser.html?Type=Image&Connector=' + encodeURIComponent( FCKConfig.BasePath + 'filemanager/connectors/' + _FileBrowserLanguage + '/connector.' + _FileBrowserExtension ) ;
  99. FCKConfig.ImageBrowserWindowWidth = FCKConfig.ScreenWidth * 0.7 ; // 70% ;
  100. FCKConfig.ImageBrowserWindowHeight = FCKConfig.ScreenHeight * 0.7 ; // 70% ;
  101. // Flash Browsing
  102. FCKConfig.FlashBrowser = true ;
  103. // this is set in the main/inc/lib/formvalidator/Element/html_editor.php file very hard to find!!
  104. //FCKConfig.FlashBrowserURL = FCKConfig.BasePath + 'filemanager/browser/default/browser.html?Type=Flash&Connector=' + encodeURIComponent( FCKConfig.BasePath + 'filemanager/connectors/' + _FileBrowserLanguage + '/connector.' + _FileBrowserExtension ) ;
  105. FCKConfig.FlashBrowserWindowWidth = FCKConfig.ScreenWidth * 0.7 ; //70% ;
  106. FCKConfig.FlashBrowserWindowHeight = FCKConfig.ScreenHeight * 0.7 ; //70% ;
  107. FCKConfig.MediaBrowser = true ;
  108. // this is set in the main/inc/lib/formvalidator/Element/html_editor.php
  109. //FCKConfig.MediaBrowserURL = FCKConfig.FlashBrowserURL;
  110. FCKConfig.MediaBrowserWindowWidth = FCKConfig.ScreenWidth * 0.7 ; //70% ;
  111. FCKConfig.MediaBrowserWindowHeight= FCKConfig.ScreenHeight * 0.7 ; //70% ;
  112. FCKConfig.LinkUpload = true ;
  113. FCKConfig.LinkUploadURL = FCKConfig.BasePath + 'filemanager/connectors/' + _QuickUploadLanguage + '/upload.' + _QuickUploadExtension ;
  114. 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
  115. FCKConfig.LinkUploadDeniedExtensions = "" ; // empty for no one
  116. FCKConfig.ImageUpload = true ;
  117. FCKConfig.ImageUploadURL = FCKConfig.BasePath + 'filemanager/connectors/' + _QuickUploadLanguage + '/upload.' + _QuickUploadExtension + '?Type=Image' ;
  118. FCKConfig.ImageUploadAllowedExtensions = ".(jpg|gif|jpeg|png|bmp)$" ; // empty for all
  119. FCKConfig.ImageUploadDeniedExtensions = "" ; // empty for no one
  120. // plugin added
  121. /*
  122. FCKConfig.FlashUpload = true ;
  123. FCKConfig.FlashUploadURL = FCKConfig.BasePath + 'filemanager/connectors/' + _QuickUploadLanguage + '/upload.' + _QuickUploadExtension + '?Type=Flash' ;
  124. FCKConfig.FlashUploadAllowedExtensions = ".(swf|flv)$" ; // empty for all
  125. FCKConfig.FlashUploadDeniedExtensions = "" ; // empty for no one
  126. */
  127. // mp3 plugin
  128. FCKConfig.MP3Browser = true ;
  129. // this is set in the main/inc/lib/formvalidator/Element/html_editor.php
  130. //FCKConfig.MP3BrowserURL = FCKConfig.BasePath + 'filemanager/browser/default/browser.html?Type=MP3&Connector=connectors/' + _FileBrowserLanguage + '/connector.' + _FileBrowserExtension ;
  131. FCKConfig.MP3BrowserWindowWidth = FCKConfig.ScreenWidth * 0.7 ; //70% ;
  132. FCKConfig.MP3BrowserWindowHeight = FCKConfig.ScreenHeight * 0.7 ; //70% ;
  133. FCKConfig.MP3Upload = true ;
  134. //FCKConfig.MP3UploadURL = FCKConfig.BasePath + 'filemanager/upload/' + FCKConfig.QuickUploadLanguage + '/upload.' + _QuickUploadLanguage + '?Type=MP3' ;
  135. FCKConfig.MP3UploadAllowedExtensions = ".(mp3)$" ; // empty for all
  136. FCKConfig.MP3UploadDeniedExtensions = "" ; // empty for no one