Browse Source

[svn r18435] config notebook buttons bar

Juan Carlos Raña 16 years ago
parent
commit
a381d2f0ab
2 changed files with 23 additions and 221 deletions
  1. 23 0
      main/inc/lib/fckeditor/myconfig.js
  2. 0 221
      main/inc/lib/fckeditor/myconfig_afm.js

+ 23 - 0
main/inc/lib/fckeditor/myconfig.js

@@ -175,6 +175,28 @@ FCKConfig.ToolbarSets["Glossary"] = [
 	['Source']
 ] ;
 
+FCKConfig.ToolbarSets["Notebook"] = [
+	['NewPage','Save','FitWindow','-','PasteText','PasteWord','-','Undo','Redo','-','SelectAll','RemoveFormat','-','Find'],
+	['Link','Unlink','Anchor'],
+	['Image','imgmapPopup','flvPlayer','Flash','EmbedMovies','YouTube','MP3'],
+	['Table','Rule','SpecialChar','googlemaps'],
+	['FontName','FontSize'],
+	['Bold','Italic','Underline','StrikeThrough'],
+	['Subscript','Superscript','-','JustifyLeft','JustifyFull','-','OrderedList','UnorderedList','-','Outdent','Indent','-','TextColor','BGColor'],
+	['Source']
+] ;
+
+FCKConfig.ToolbarSets["Notebook_Student"] = [
+	['NewPage','Save','FitWindow','-','PasteText','PasteWord','-','Undo','Redo','-','SelectAll','RemoveFormat','-','Find'],
+	['Link','Unlink','Anchor'],
+	['Image','imgmapPopup','flvPlayer','Flash','EmbedMovies','YouTube','MP3'],
+	['Table','Rule','SpecialChar','googlemaps'],
+	['FontName','FontSize'],
+	['Bold','Italic','Underline','StrikeThrough'],
+	['Subscript','Superscript','-','JustifyLeft','JustifyFull','-','OrderedList','UnorderedList','-','Outdent','Indent','-','TextColor','BGColor'],
+	['ShowBlocks']
+] ;
+
 FCKConfig.ToolbarSets["Wiki"] = [
 	['NewPage','Templates','Save','PageBreak','Preview','FitWindow','-','PasteText','PasteWord','-','Undo','Redo','-','SelectAll','RemoveFormat','-','Find'],
 	['Wikilink','Link','Unlink','Anchor'],
@@ -412,6 +434,7 @@ if (FCK.AdvancedFileManager)
 	FCKConfig.LinkUpload = false ;
 	FCKConfig.ImageUpload = false ;
 	FCKConfig.MP3Upload = false ;
+	//FCKConfig.FlashUpload = false ; //See plugin
 }
 
 

+ 0 - 221
main/inc/lib/fckeditor/myconfig_afm.js

@@ -1,221 +0,0 @@
-FCKConfig.IMUploadPath = '';
-FCKConfig.FlashUploadPath = '' ;
-FCKConfig.AudioUploadPath = '' ;
-FCKConfig.UserStatus = 'teacher' ;
-
-// for ajaxfilemanager add Image to all ToolbarSets
-
-FCKConfig.ToolbarSets["Question"] = [
-	['Source','DocProps','-','NewPage','Preview','-'],
-	['Undo','Redo','-','Find','Replace','-','SelectAll','RemoveFormat'],
-	['Bold','Italic','Underline','StrikeThrough','-','Subscript','Superscript'],
-	['OrderedList','UnorderedList','-','Outdent','Indent'],
-	['JustifyLeft','JustifyCenter','JustifyRight','JustifyFull'],
-	['Link','Unlink','Anchor'],
-	['Image','Flash','MP3','Table','Rule','Smiley','SpecialChar','UniversalKey'],
-	['Form','Checkbox','Radio','TextField','Textarea','Select','Button','ImageButton','HiddenField'],
-	'/',
-	['Style','FontFormat','FontName','FontSize'],['Attachment']
-] ;
-
-FCKConfig.ToolbarSets["Middle"] = [
-	['FontSize','Bold','Italic','Underline','StrikeThrough','TextColor','-','OrderedList','UnorderedList','-','Rule','Link','Unlink','Table','-','Image','Flash','Source']
-] ;
-
-FCKConfig.ToolbarSets["Agenda"] = [
-	['FontSize','Bold','Italic','Underline','StrikeThrough','TextColor','-','OrderedList','UnorderedList','-','Rule','Link','Unlink','Table','-','Image']
-] ;
-
-FCKConfig.ToolbarSets["Small"] = [
-	['Bold','Italic','Underline','StrikeThrough','Link','Unlink','Image','Flash','OrderedList','UnorderedList','Table']
-] ;
-
-FCKConfig.ToolbarSets["Blog"] = [
-	['Bold','Italic','Underline','StrikeThrough','Link','Unlink','Image','OrderedList','UnorderedList','Table']
-] ;
-
-FCKConfig.ToolbarSets["Announcements"] = [
-	['Bold','Italic','Underline','StrikeThrough','Link','Unlink','Image','OrderedList','UnorderedList','Table']
-] ;
-
-FCKConfig.ToolbarSets["Full"] = [
-	['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']
-] ;
-
-FCKConfig.ToolbarSets["Comment"] = [
-	['Bold','Italic','Underline','StrikeThrough']
-] ;
-
-FCKConfig.ToolbarSets["NewTest"] = [
-	['Bold','Italic','Underline','StrikeThrough','Link','Unlink','Image','Flash','MP3','OrderedList','UnorderedList','Table','Source']
-] ;
-
-FCKConfig.ToolbarSets["TestComment"] = [
-	['FontName','FontSize','TextColor','BGColor'],['Bold','Italic','Underline','StrikeThrough','Subscript', 'Superscript','Link','Unlink','Image','Flash','MP3','OrderedList','UnorderedList','Table','Source']
-] ;
-
-FCKConfig.ToolbarSets["Test"] = [
-	['Bold','Italic','Underline','StrikeThrough','Subscript','Superscript','Link','Unlink','Image','MP3','OrderedList','UnorderedList','Table']
-] ;
-
-FCKConfig.ToolbarSets["Survey"] = [
-	['FontSize','Bold','Italic','TextColor','-','OrderedList','UnorderedList','-','Rule','Link','Unlink','Table','-','Image','Source']
-] ;
-
-
-FCKConfig.ToolbarSets["Profil"] = [
-	['FitWindow','PasteWord','Undo','Redo'],
-	['Link','Image','imgmapPopup','flvPlayer','Flash','EmbedMovies','YouTube','Table','googlemaps'],
-	['Bold','Italic','Underline','OrderedList','UnorderedList','TextColor','-','Source']
-] ;
-
-FCKConfig.ToolbarSets["Messages"] = [
-	['FitWindow','PasteWord','Undo','Redo'],
-	['Link','Image','imgmapPopup','flvPlayer','Flash','EmbedMovies','YouTube','Table','googlemaps'],
-	['Bold','Italic','Underline','OrderedList','UnorderedList','TextColor','-','Source']
-] ;
-
-FCKConfig.ToolbarSets["Introduction"] = [
-	['NewPage','Templates','Preview','FitWindow','-','PasteText','PasteWord','-','Undo','Redo','-','SelectAll','RemoveFormat','-','Find'],
-	['Link','Unlink','Anchor'],
-	['Image','imgmapPopup','flvPlayer','Flash','EmbedMovies','YouTube','MP3'],
-	['Table','CreateDiv','Rule','Smiley','SpecialChar','googlemaps'],
-	['FontName','FontSize'],
-	['Bold','Italic','Underline','StrikeThrough'],
-	['Subscript','Superscript','-','JustifyLeft','JustifyCenter','JustifyRight','JustifyFull','-','OrderedList','UnorderedList','-','Outdent','Indent','-','TextColor','BGColor'],
-	['Source']
-] ;
-
-FCKConfig.ToolbarSets["CourseDescription"] = [
-	['NewPage','Templates','Save','PageBreak','Preview','FitWindow','-','PasteText','PasteWord','-','Undo','Redo','-','SelectAll','RemoveFormat','-','Find'],
-	['Link','Unlink','Anchor'],
-	['Image','imgmapPopup','flvPlayer','Flash','EmbedMovies','YouTube','MP3'],
-	['Table','CreateDiv','Rule','Smiley','SpecialChar','googlemaps'],
-	['FontFormat','FontName','FontSize'],
-	['Bold','Italic','Underline','StrikeThrough'],
-	['Subscript','Superscript','-','JustifyLeft','JustifyCenter','JustifyRight','JustifyFull','-','OrderedList','UnorderedList','-','Outdent','Indent','-','TextColor','BGColor'],
-	['Source']
-] ;
-
-FCKConfig.ToolbarSets["ForumLight"] = [
-	['Bold','Italic','Underline','StrikeThrough']
-] ;
-
-FCKConfig.ToolbarSets["Forum"] = [
-	['NewPage','FitWindow','-','PasteWord','-','Undo','Redo','-','SelectAll','RemoveFormat','-','Find'],
-	['Link','Unlink','Anchor'],
-	['Image','imgmapPopup','flvPlayer','Flash','EmbedMovies','YouTube','MP3'],
-	['Table','Rule','Smiley','SpecialChar','googlemaps'],
-	['FontName','FontSize'],
-	['Bold','Italic','Underline','StrikeThrough'],
-	['Subscript','Superscript','-','OrderedList','UnorderedList','-','Outdent','Indent','Blockquote','-','TextColor','BGColor'],
-	['Source']
-] ;
-
-FCKConfig.ToolbarSets["Forum_Student"] = [
-	['NewPage','FitWindow','-','PasteWord','-','Undo','Redo','-','SelectAll','RemoveFormat','-','Find'],
-	['Link','Unlink','Anchor'],
-	['Image','imgmapPopup','flvPlayer','Flash','EmbedMovies','YouTube','MP3'],
-	['Table','Rule','Smiley','SpecialChar','googlemaps'],
-	['FontName','FontSize'],
-	['Bold','Italic','Underline','StrikeThrough'],
-	['Subscript','Superscript','-','OrderedList','UnorderedList','-','Outdent','Indent','Blockquote','-','TextColor','BGColor'],
-	['ShowBlocks']
-] ;
-
-FCKConfig.ToolbarSets["Wiki"] = [
-	['NewPage','Templates','Save','PageBreak','Preview','FitWindow','-','PasteText','PasteWord','-','Undo','Redo','-','SelectAll','RemoveFormat','-','Find'],
-	['Wikilink','Link','Unlink','Anchor'],
-	['Image','imgmapPopup','flvPlayer','Flash','EmbedMovies','YouTube','MP3'],
-	['Table','CreateDiv','Rule','Smiley','SpecialChar','googlemaps'],
-	['FontFormat','FontName','FontSize'],
-	['Bold','Italic','Underline','StrikeThrough'],
-	['Subscript','Superscript','-','JustifyLeft','JustifyCenter','JustifyRight','JustifyFull','-','OrderedList','UnorderedList','-','Outdent','Indent','-','TextColor','BGColor'],
-	['Source']
-] ;
-
-FCKConfig.ToolbarSets["Wiki_Student"] = [
-	['NewPage','Save','PageBreak','Preview','FitWindow','-','PasteText','PasteWord','-','Undo','Redo','-','SelectAll','RemoveFormat','-','Find'],
-	['Wikilink','Link','Unlink','Anchor'],
-	['Image','imgmapPopup','flvPlayer','Flash','EmbedMovies','YouTube','MP3'],
-	['Table','CreateDiv','Rule','Smiley','SpecialChar','googlemaps'],
-	['FontFormat','FontName','FontSize'],
-	['Bold','Italic','Underline','StrikeThrough'],
-	['Subscript','Superscript','-','JustifyLeft','JustifyCenter','JustifyRight','JustifyFull','-','OrderedList','UnorderedList','-','Outdent','Indent','-','TextColor','BGColor'],
-	['ShowBlocks']
-] ;
-
-
-
-var sOtherPluginPath = FCKConfig.BasePath.substr(0, FCKConfig.BasePath.length - 7) + 'editor/plugins/' ;
-
-// Plugins
-
-//Added by Ivan Tcholakov, 18-DEC-2008.
-FCKConfig.Plugins.Add( "customizations" ) ;
-FCKConfig.Plugins.Add( "dragresizetable" ) ;
-FCKConfig.Plugins.Add( "tablecommands" ) ;
-
-/*
-FCKConfig.Plugins.Add("Video", "en", sOtherPluginPath ) ;
-FCKConfig.Plugins.Add("Attachment", "en", sOtherPluginPath ) ;*/
-
-// added by Julio Montoya
-FCKConfig.Plugins.Add("MP3", "en", sOtherPluginPath ) ;
-//FCKConfig.Plugins.Add('ImageManager','en') ;//deactivated when run with advanced filemanager and whitout formvalidator
-FCKConfig.Plugins.Add('flvPlayer','en') ;
-//FCKConfig.Plugins.Add("Flash", "en");
-FCKConfig.Plugins.Add('fckEmbedMovies');
-
-// added by Juan Carlos Ra�a
-FCKConfig.Plugins.Add("mimetex", "en", sOtherPluginPath ) ;
-FCKConfig.Plugins.Add("wikilink", "en,es", sOtherPluginPath ) ;
-FCKConfig.Plugins.Add("imgmap", "en,es", sOtherPluginPath );
-FCKConfig.Plugins.Add("googlemaps", "en,es", sOtherPluginPath ) ;
-// This key is for http://localhost. You must get one for each server where you want to use the plugin,
-// just get the key for free here after agreeing to the Terms of Use of the GoogleMaps API:
-// http://www.google.com/apis/maps/signup.html. // If you leave an empty string then the toolbar icon won't be shown.
-FCKConfig.GoogleMaps_Key = 'ABQIAAAAlXu5Pw6DFAUgqM2wQn01gxT2yXp_ZAY8_ufC3CFXhHIE1NvwkxSy5hTGQdsosYD3dz6faZHVrO-02A';
-
-//Added by Ivan Tcholakov, 19-DEC-2008.
-FCKConfig.Plugins.Add( 'youtube', 'en' ) ;
-
-// reduce format list
-FCKConfig.FontFormats	= 'p;h1;h2;h3;h4;h5' ;
-
-//////////////////////////////////////////////moved from fckconfig.js
-// added by Juan Carlos Ra�a 
-
-FCKConfig.LinkBrowser = true ;
-FCKConfig.LinkBrowserURL =FCKConfig.PluginsPath +'ajaxfilemanager/ajaxfilemanager.php';
-FCKConfig.LinkBrowserWindowWidth    = 782;
-FCKConfig.LinkBrowserWindowHeight   = 490;
-
-
-FCKConfig.ImageBrowser = true ;
-FCKConfig.ImageBrowserURL =FCKConfig.PluginsPath +'ajaxfilemanager/ajaxfilemanager.php';
-FCKConfig.ImageBrowserWindowWidth    = 782;
-FCKConfig.ImageBrowserWindowHeight   = 490;
-
-FCKConfig.FlashBrowser = true ;
-FCKConfig.FlashBrowserURL =FCKConfig.PluginsPath +'ajaxfilemanager/ajaxfilemanager.php';
-FCKConfig.FlashBrowserWindowWidth    = 782;
-FCKConfig.FlashBrowserWindowHeight   = 490;
-
-
-FCKConfig.MediaBrowser = true ;
-FCKConfig.MediaBrowserURL =FCKConfig.PluginsPath +'ajaxfilemanager/ajaxfilemanager.php';
-FCKConfig.MediaBrowserWindowWidth    = 782;
-FCKConfig.MediaBrowserWindowHeight   = 490;
-
-// mp3 plugin 
-FCKConfig.MP3Browser = true ;
-FCKConfig.MP3BrowserURL =FCKConfig.PluginsPath +'ajaxfilemanager/ajaxfilemanager.php';
-FCKConfig.MP3BrowserWindowWidth    = 782;
-FCKConfig.MP3BrowserWindowHeight   = 490;
-
-///
-FCKConfig.LinkUpload = false ;
-FCKConfig.ImageUpload = false ;
-//FCKConfig.FlashUpload = false ; //See plugin
-FCKConfig.MP3Upload = false ;