myconfig_afm.js 6.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153
  1. FCKConfig.IMUploadPath = '';
  2. FCKConfig.FlashUploadPath = '' ;
  3. FCKConfig.AudioUploadPath = '' ;
  4. FCKConfig.UserStatus = 'teacher' ;
  5. // for ajaxfilemanager add Image to all ToolbarSets
  6. FCKConfig.ToolbarSets["Question"] = [
  7. ['Source','DocProps','-','NewPage','Preview','-'],
  8. ['Undo','Redo','-','Find','Replace','-','SelectAll','RemoveFormat'],
  9. ['Bold','Italic','Underline','StrikeThrough','-','Subscript','Superscript'],
  10. ['OrderedList','UnorderedList','-','Outdent','Indent'],
  11. ['JustifyLeft','JustifyCenter','JustifyRight','JustifyFull'],
  12. ['Link','Unlink','Anchor'],
  13. ['Image','Flash','MP3','Table','Rule','Smiley','SpecialChar','UniversalKey'],
  14. ['Form','Checkbox','Radio','TextField','Textarea','Select','Button','ImageButton','HiddenField'],
  15. '/',
  16. ['Style','FontFormat','FontName','FontSize'],['Attachment']
  17. ] ;
  18. FCKConfig.ToolbarSets["Middle"] = [
  19. ['Source','FontSize','Bold','Italic','Underline','StrikeThrough','TextColor','-','OrderedList','UnorderedList','-','Rule','Link','Unlink','Table','-','Image','Flash']
  20. ] ;
  21. FCKConfig.ToolbarSets["Agenda"] = [
  22. ['FontSize','Bold','Italic','Underline','StrikeThrough','TextColor','-','OrderedList','UnorderedList','-','Rule','Link','Unlink','Table','-','Image']
  23. ] ;
  24. FCKConfig.ToolbarSets["Small"] = [
  25. ['Bold','Italic','Underline','StrikeThrough','Link','Unlink','Image','Flash','OrderedList','UnorderedList','Table']
  26. ] ;
  27. FCKConfig.ToolbarSets["Profil"] = [
  28. ['Bold','Italic','Underline','StrikeThrough','Link','Unlink','OrderedList','UnorderedList']
  29. ] ;
  30. FCKConfig.ToolbarSets["Blog"] = [
  31. ['Bold','Italic','Underline','StrikeThrough','Link','Unlink','Image','OrderedList','UnorderedList','Table']
  32. ] ;
  33. FCKConfig.ToolbarSets["Announcements"] = [
  34. ['Bold','Italic','Underline','StrikeThrough','Link','Unlink','Image','OrderedList','UnorderedList','Table']
  35. ] ;
  36. FCKConfig.ToolbarSets["Full"] = [
  37. ['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']
  38. ] ;
  39. FCKConfig.ToolbarSets["Comment"] = [
  40. ['Bold','Italic','Underline','StrikeThrough']
  41. ] ;
  42. FCKConfig.ToolbarSets["ForumLight"] = [
  43. ['Bold','Italic','Underline','StrikeThrough']
  44. ] ;
  45. FCKConfig.ToolbarSets["NewTest"] = [
  46. ['Source','Bold','Italic','Underline','StrikeThrough','Link','Unlink','Image','Flash','MP3','OrderedList','UnorderedList','Table']
  47. ] ;
  48. FCKConfig.ToolbarSets["TestComment"] = [
  49. ['Source','FontName','FontSize','TextColor','BGColor'],['Bold','Italic','Underline','StrikeThrough','Subscript', 'Superscript','Link','Unlink','Image','Flash','MP3','OrderedList','UnorderedList','Table']
  50. ] ;
  51. FCKConfig.ToolbarSets["Test"] = [
  52. ['Bold','Italic','Underline','StrikeThrough','Subscript','Superscript','Link','Unlink','Image','MP3','OrderedList','UnorderedList','Table']
  53. ] ;
  54. FCKConfig.ToolbarSets["Survey"] = [
  55. ['FontSize','Bold','Italic','TextColor','-','OrderedList','UnorderedList','-','Rule','Link','Unlink','Table','-','Image','Source']
  56. ] ;
  57. FCKConfig.ToolbarSets["Wiki"] = [
  58. ['NewPage','Templates','Save','Print','PageBreak','Preview','ShowBlocks','-','Cut','Copy','Paste','PasteText','PasteWord','-','Undo','Redo','-','SelectAll','RemoveFormat','-','Find'],
  59. ['Wikilink','Link','Unlink','Anchor','-','Image','imgmapPopup','flvPlayer','Flash','EmbedMovies','YouTube','MP3','Table','CreateDiv','Rule','Smiley','SpecialChar','googlemaps'],
  60. ['FontFormat','FontName','FontSize'],
  61. ['Bold','Italic','Underline','StrikeThrough','-','Subscript','Superscript','-','JustifyLeft','JustifyCenter','JustifyRight','JustifyFull','-','OrderedList','UnorderedList','-','Outdent','Indent','-','TextColor','BGColor','Source'],
  62. ['FitWindow']
  63. ] ;
  64. var sOtherPluginPath = FCKConfig.BasePath.substr(0, FCKConfig.BasePath.length - 7) + 'editor/plugins/' ;
  65. // Plugins
  66. //Added by Ivan Tcholakov, 18-DEC-2008.
  67. FCKConfig.Plugins.Add( "customizations" ) ;
  68. FCKConfig.Plugins.Add( "dragresizetable" ) ;
  69. FCKConfig.Plugins.Add( "tablecommands" ) ;
  70. /*
  71. FCKConfig.Plugins.Add("Video", "en", sOtherPluginPath ) ;
  72. FCKConfig.Plugins.Add("Attachment", "en", sOtherPluginPath ) ;*/
  73. // added by Julio Montoya
  74. FCKConfig.Plugins.Add("MP3", "en", sOtherPluginPath ) ;
  75. FCKConfig.Plugins.Add('ImageManager','en') ;
  76. FCKConfig.Plugins.Add('flvPlayer','en') ;
  77. FCKConfig.Plugins.Add("Flash", "en");
  78. FCKConfig.Plugins.Add('fckEmbedMovies');
  79. FCKConfig.Plugins.Add("wikilink", "en,es", sOtherPluginPath ) ; // support to english, spanish
  80. FCKConfig.Plugins.Add("imgmap", "en,es", sOtherPluginPath );
  81. FCKConfig.Plugins.Add("googlemaps", "en,es", sOtherPluginPath ) ;
  82. // This key is for http://localhost. You must get one for each server where you want to use the plugin,
  83. // just get the key for free here after agreeing to the Terms of Use of the GoogleMaps API:
  84. // http://www.google.com/apis/maps/signup.html. // If you leave an empty string then the toolbar icon won't be shown.
  85. FCKConfig.GoogleMaps_Key = 'ABQIAAAAlXu5Pw6DFAUgqM2wQn01gxT2yXp_ZAY8_ufC3CFXhHIE1NvwkxSy5hTGQdsosYD3dz6faZHVrO-02A';
  86. //Added by Ivan Tcholakov, 19-DEC-2008.
  87. FCKConfig.Plugins.Add( 'youtube', 'en' ) ;
  88. // reduce format list
  89. FCKConfig.FontFormats = 'p;h1;h2;h3;h4;h5' ;
  90. //////////////////////////////////////////////moved from fckconfig.js
  91. // added by Juan Carlos Raña
  92. FCKConfig.LinkBrowser = true ;
  93. FCKConfig.LinkBrowserURL =FCKConfig.PluginsPath +'ajaxfilemanager/ajaxfilemanager.php';
  94. FCKConfig.LinkBrowserWindowWidth = 782;
  95. FCKConfig.LinkBrowserWindowHeight = 440;
  96. FCKConfig.ImageBrowser = true ;
  97. FCKConfig.ImageBrowserURL =FCKConfig.PluginsPath +'ajaxfilemanager/ajaxfilemanager.php';
  98. FCKConfig.ImageBrowserWindowWidth = 782;
  99. FCKConfig.ImageBrowserWindowHeight = 440;
  100. FCKConfig.FlashBrowser = true ;
  101. FCKConfig.FlashBrowserURL =FCKConfig.PluginsPath +'ajaxfilemanager/ajaxfilemanager.php';
  102. FCKConfig.FlashBrowserWindowWidth = 782;
  103. FCKConfig.FlashBrowserWindowHeight = 440;
  104. FCKConfig.MediaBrowser = true ;
  105. FCKConfig.MediaBrowserURL =FCKConfig.PluginsPath +'ajaxfilemanager/ajaxfilemanager.php';
  106. FCKConfig.MediaBrowserWindowWidth = 782;
  107. FCKConfig.MediaBrowserWindowHeight = 440;
  108. // mp3 plugin
  109. FCKConfig.MP3Browser = true ;
  110. FCKConfig.MP3BrowserURL =FCKConfig.PluginsPath +'ajaxfilemanager/ajaxfilemanager.php';
  111. FCKConfig.MP3BrowserWindowWidth = 782;
  112. FCKConfig.MP3BrowserWindowHeight = 440;
  113. ///
  114. FCKConfig.LinkUpload = false ;
  115. FCKConfig.ImageUpload = false ;
  116. //FCKConfig.FlashUpload = false ; //See plugin
  117. FCKConfig.MP3Upload = false ;