Browse Source

[svn r19224] Style changes - Re-distributed buttons, configured values by default when you create a table, directed to Image Gallery when you click to image icon - see FS#3799

Cristian Fasanando 16 years ago
parent
commit
23ab0d1f60

+ 4 - 4
main/exercice/unique_answer.class.php

@@ -65,7 +65,7 @@ class UniqueAnswer extends Question {
 		global $fck_attribute;
 
 		$fck_attribute = array();
-		$fck_attribute['Width'] = '100%';
+		$fck_attribute['Width'] = '60%';
 		$fck_attribute['Height'] = '125px';
 		
 		$fck_attribute['ToolbarSet'] = 'Answer';
@@ -92,8 +92,8 @@ class UniqueAnswer extends Question {
 		} elseif ($obj_ex->selectFeedbackType()==1) {						
 			$fck_attribute['Width'] = '250px';
 			$fck_attribute['Height'] = '110px';			
-			$comment_title = '<th width="'.$fck_attribute['Width'].'" >'.get_lang('Comment').'</th>';
-			$feedback_title = '<th width="300px" >'.get_lang('Scenario').'</th>';			
+			$comment_title = '<th width="500" >'.get_lang('Comment').'</th>';
+			$feedback_title = '<th width="350px" >'.get_lang('Scenario').'</th>';			
 		} 
 		
 		$html='
@@ -104,7 +104,7 @@ class UniqueAnswer extends Question {
 			<div class="formw">
 				<table class="data_table">
 					<tr style="text-align: center;">
-						<th width="14px">
+						<th width="10px">
 							'.get_lang('Number').'
 						</th>
 						<th width="10px" >

+ 1 - 1
main/forum/index.php

@@ -153,7 +153,7 @@ $get_actions=isset($_GET['action']) ? $_GET['action'] : '';
 if (api_is_allowed_to_edit(false,true)) {
 	$fck_attribute['Width'] = '98%';
 	$fck_attribute['Height'] = '200';
-	$fck_attribute['ToolbarSet'] = 'ForumLight';
+	$fck_attribute['ToolbarSet'] = 'Forum';
 	handle_forum_and_forumcategories();
 }
 

+ 3 - 3
main/gradebook/index.php

@@ -75,7 +75,7 @@ if ( (isset($_GET['selectcat']) && $_GET['selectcat']>0) && (isset($_SESSION['st
 	//Introduction tool: student view
 	$fck_attribute['Width'] = '100%';
 	$fck_attribute['Height'] = '300';
-	$fck_attribute['ToolbarSet'] = 'Introduction';
+	$fck_attribute['ToolbarSet'] = 'Gradebook';
 	Display::display_introduction_section(TOOL_GRADEBOOK);
 	$fck_attribute = null; // Clearing this global variable immediatelly after it has been used.	
 	//	
@@ -98,7 +98,7 @@ if ( (isset($_GET['selectcat']) && $_GET['selectcat']>0) && (isset($_SESSION['st
 		//Introduction tool: student view
 		$fck_attribute['Width'] = '100%';
 		$fck_attribute['Height'] = '300';
-		$fck_attribute['ToolbarSet'] = 'Introduction';
+		$fck_attribute['ToolbarSet'] = 'Gradebook';
 		Display::display_introduction_section(TOOL_GRADEBOOK);
 		$fck_attribute = null; // Clearing this global variable immediatelly after it has been used.	
 		//	
@@ -747,7 +747,7 @@ if (api_is_platform_admin() || api_is_allowed_to_create_course() && api_is_cours
 
 $fck_attribute['Width'] = '100%';
 $fck_attribute['Height'] = '300';
-$fck_attribute['ToolbarSet'] = 'Introduction';
+$fck_attribute['ToolbarSet'] = 'Gradebook';
 
 Display::display_introduction_section(TOOL_GRADEBOOK);
 

+ 6 - 6
main/inc/lib/fckeditor/editor/dialog/fck_table.html

@@ -324,14 +324,14 @@ function Ok()
 									<td>
 										<span fcklang="DlgTableRows">Rows</span>:</td>
 									<td>
-										&nbsp;<input id="txtRows" type="text" maxlength="3" size="2" value="3"
+										&nbsp;<input id="txtRows" type="text" maxlength="3" size="2" value="2"
 											onkeypress="return IsDigit(event);" /></td>
 								</tr>
 								<tr>
 									<td>
 										<span fcklang="DlgTableColumns">Columns</span>:</td>
 									<td>
-										&nbsp;<input id="txtColumns" type="text" maxlength="2" size="2" value="2"
+										&nbsp;<input id="txtColumns" type="text" maxlength="2" size="2" value="3"
 											onkeypress="return IsDigit(event);" /></td>
 								</tr>
 								<tr>
@@ -349,7 +349,7 @@ function Ok()
 									<td>
 										<span fcklang="DlgTableBorder">Border size</span>:</td>
 									<td>
-										&nbsp;<input id="txtBorder" type="text" maxlength="2" size="2" value="1"
+										&nbsp;<input id="txtBorder" type="text" maxlength="2" size="2" value="0"
 											onkeypress="return IsDigit(event);" /></td>
 								</tr>
 								<tr>
@@ -373,7 +373,7 @@ function Ok()
 									<td>
 										<span fcklang="DlgTableWidth">Width</span>:</td>
 									<td>
-										&nbsp;<input id="txtWidth" type="text" maxlength="4" size="3" value="200"
+										&nbsp;<input id="txtWidth" type="text" maxlength="4" size="3" value="720"
 											onkeypress="return IsDigit(event);" /></td>
 									<td>
 										&nbsp;<select id="selWidthType">
@@ -396,7 +396,7 @@ function Ok()
 									<td nowrap="nowrap">
 										<span fcklang="DlgTableCellSpace">Cell spacing</span>:</td>
 									<td>
-										&nbsp;<input id="txtCellSpacing" type="text" maxlength="2" size="2" value="1"
+										&nbsp;<input id="txtCellSpacing" type="text" maxlength="2" size="2" value="2"
 											onkeypress="return IsDigit(event);" /></td>
 									<td>
 										&nbsp;</td>
@@ -405,7 +405,7 @@ function Ok()
 									<td nowrap="nowrap">
 										<span fcklang="DlgTableCellPad">Cell padding</span>:</td>
 									<td>
-										&nbsp;<input id="txtCellPadding" type="text" maxlength="2" size="2" value="1"
+										&nbsp;<input id="txtCellPadding" type="text" maxlength="2" size="2" value="10"
 											onkeypress="return IsDigit(event);" /></td>
 									<td>
 										&nbsp;</td>

+ 1 - 1
main/inc/lib/fckeditor/editor/plugins/ImageManager/images.php

@@ -10,7 +10,7 @@ require_once('config.inc.php');
 require_once('Classes/ImageManager.php');
 
 //default path is /
-$relative = '/';
+$relative = '/images/gallery/';
 $manager = new ImageManager($IMConfig);
 
 //process any file uploads

+ 9 - 4
main/inc/lib/fckeditor/editor/plugins/ImageManager/manager.php

@@ -34,8 +34,8 @@
 	var thumbdir = "<?php echo $IMConfig['thumbnail_dir']; ?>";
 	var base_url = "<?php echo $manager->getBaseURL(); ?>";
 
-	//var base_url_alt= "<?php echo $_GET['base_url_alt'].'images'; ?>";
-	var base_url_alt= "<?php echo $_GET['base_url_alt']; ?>";
+	//var base_url_alt= "<?php echo $_GET['base_url_alt'].'images'; ?>";	
+	var base_url_alt= "<?php echo $_GET['base_url_alt'].'images/gallery/'; ?>";
 
 	var server_name = "<?php echo $IMConfig['server_name']; ?>";
 
@@ -82,8 +82,13 @@
 	<label for="dirPath">Directory</label>
 	<select name="dir" class="dirWidth" id="dirPath" onchange="updateDir(this)" style="width: 400px;">
 	<option value="/">/</option>
-<?php foreach($dirs as $relative=>$fullpath) { ?>
-		<option value="<?php echo rawurlencode($relative); ?>"><?php echo $relative; ?></option>
+<?php 		
+	  foreach($dirs as $relative=>$fullpath) { ?>
+	  	<?php if($relative == '/images/gallery/') {?>	    
+		<option value="<?php echo rawurlencode($relative); ?>" selected="selected"><?php echo $relative; ?></option>
+		<?php } else {?>
+		<option value="<?php echo rawurlencode($relative); ?>"><?php echo $relative; ?></option>	
+		<?php } ?>	
 <?php } ?>
 	</select>
 	<a href="#" onclick="javascript: goUpDir();" title="Directory Up"><img src="img/btnFolderUp.gif" height="15" width="15" alt="Directory Up" />&nbsp;<span>Directory Up</span></a>

+ 90 - 57
main/inc/lib/fckeditor/myconfig.js

@@ -138,10 +138,11 @@ FCKConfig.ToolbarSets["Introduction"] = [
 	['Link','Unlink','Anchor'],
 	['Image','imgmapPopup','flvPlayer','Flash','EmbedMovies','YouTube','MP3'],
 	['Table','CreateDiv','Rule','SpecialChar'],
+	['OrderedList','UnorderedList','-','Outdent','Indent','-','TextColor','BGColor'],
 	'/',	
 	['Style','FontFormat','FontName','FontSize'],
 	['Bold','Italic','Underline','StrikeThrough'],
-	['Subscript','Superscript','-','JustifyLeft','JustifyCenter','JustifyRight','JustifyFull','-','OrderedList','UnorderedList','-','Outdent','Indent','-','TextColor','BGColor'],
+	['Subscript','Superscript','-','JustifyLeft','JustifyCenter','JustifyRight','JustifyFull'],
 	['Source']
 ] ;
 
@@ -172,24 +173,28 @@ FCKConfig.ToolbarSets["Agenda_Student"] = [
 
 //Announcements
 FCKConfig.ToolbarSets["Announcements"] = [
-	['NewPage','Preview','FitWindow','-','PasteText','-','Undo','Redo','-','SelectAll','RemoveFormat'],
-	['Link','Unlink','Anchor'],
-	['Image','flvPlayer','Flash','EmbedMovies','YouTube','MP3'],
-	['Table','Rule','Smiley','SpecialChar'],
-	['FontName','FontSize'],
-	['Bold','Italic','Underline','StrikeThrough'],
-	['Subscript','Superscript','-','JustifyLeft','JustifyCenter','JustifyRight','JustifyFull','-','OrderedList','UnorderedList','-','TextColor','BGColor'],
-	['Source']
+	['Save','Preview','FitWindow','-','PasteText','PasteWord','-','Undo','Redo','-','RemoveFormat'],
+    ['Link','Unlink','Anchor'],
+    ['Image','imgmapPopup','flvPlayer','Flash','EmbedMovies','YouTube','MP3'],
+    ['Table','CreateDiv','Rule','SpecialChar'],
+    ['OrderedList','UnorderedList','-','Outdent','Indent','-','TextColor','BGColor'],
+    '/',    
+    ['Style','FontFormat','FontName','FontSize'],
+    ['Bold','Italic','Underline','StrikeThrough'],
+    ['Subscript','Superscript','-','JustifyLeft','JustifyCenter','JustifyRight','JustifyFull'],
+    ['Source']
 ] ;
 
 FCKConfig.ToolbarSets["Announcements_Student"] = [
-	['NewPage','Preview','FitWindow','-','PasteText','-','Undo','Redo','-','SelectAll','RemoveFormat'],
-	['Link','Unlink','Anchor'],
-	['Image','flvPlayer','Flash','EmbedMovies','YouTube','MP3'],
-	['Table','Rule','Smiley','SpecialChar'],
-	['FontName','FontSize'],
-	['Bold','Italic','Underline','StrikeThrough'],
-	['Subscript','Superscript','-','JustifyLeft','JustifyCenter','JustifyRight','JustifyFull','-','OrderedList','UnorderedList','-','TextColor','BGColor'],
+	['Save','Preview','FitWindow','-','PasteText','PasteWord','-','Undo','Redo','-','RemoveFormat'],
+    ['Link','Unlink','Anchor'],
+    ['Image','imgmapPopup','flvPlayer','Flash','EmbedMovies','YouTube','MP3'],
+    ['Table','CreateDiv','Rule','SpecialChar'],
+    ['OrderedList','UnorderedList','-','Outdent','Indent','-','TextColor','BGColor'],
+    '/',    
+    ['Style','FontFormat','FontName','FontSize'],
+    ['Bold','Italic','Underline','StrikeThrough'],
+    ['Subscript','Superscript','-','JustifyLeft','JustifyCenter','JustifyRight','JustifyFull'],
 	['ShowBlocks']
 ] ;
 
@@ -242,10 +247,11 @@ FCKConfig.ToolbarSets["CourseDescription"] = [
 	['Link','Unlink','Anchor'],
 	['Image','imgmapPopup','flvPlayer','Flash','EmbedMovies','YouTube','MP3'],
 	['Table','CreateDiv','Rule','SpecialChar'],
+	['OrderedList','UnorderedList','-','Outdent','Indent','-','TextColor','BGColor'],
 	'/',	
 	['Style','FontFormat','FontName','FontSize'],
 	['Bold','Italic','Underline','StrikeThrough'],
-	['Subscript','Superscript','-','JustifyLeft','JustifyCenter','JustifyRight','JustifyFull','-','OrderedList','UnorderedList','-','Outdent','Indent','-','TextColor','BGColor'],
+	['Subscript','Superscript','-','JustifyLeft','JustifyCenter','JustifyRight','JustifyFull'],
 	['Source']
 ] ;
 
@@ -255,10 +261,11 @@ FCKConfig.ToolbarSets["Documents"] = [
 	['Link','Unlink','Anchor'],
 	['Image','imgmapPopup','flvPlayer','Flash','EmbedMovies','YouTube','MP3'],
 	['Table','CreateDiv','Rule','SpecialChar'],
+	['Outdent','Indent','-','TextColor','BGColor','-','OrderedList','UnorderedList'],
 	'/',	
 	['Style','FontFormat','FontName','FontSize'],
 	['Bold','Italic','Underline','StrikeThrough'],
-	['Subscript','Superscript','-','JustifyLeft','JustifyCenter','JustifyRight','JustifyFull','-','OrderedList','UnorderedList','-','Outdent','Indent','-','TextColor','BGColor'],
+	['Subscript','Superscript','-','JustifyLeft','JustifyCenter','JustifyRight','JustifyFull'],
 	['Source']
 ] ;
 
@@ -267,10 +274,11 @@ FCKConfig.ToolbarSets["Documents_Student"] = [
 	['Link','Unlink','Anchor'],
 	['Image','imgmapPopup','flvPlayer','Flash','EmbedMovies','YouTube','MP3'],
 	['Table','CreateDiv','Rule','SpecialChar'],
+	['Outdent','Indent','-','TextColor','BGColor','-','OrderedList','UnorderedList'],
 	'/',	
-	['FontFormat','FontName','FontSize'],
+	['Style','FontFormat','FontName','FontSize'],
 	['Bold','Italic','Underline','StrikeThrough'],
-	['Subscript','Superscript','-','JustifyLeft','JustifyCenter','JustifyRight','JustifyFull','-','OrderedList','UnorderedList','-','Outdent','Indent','-','TextColor','BGColor'],
+	['Subscript','Superscript','-','JustifyLeft','JustifyCenter','JustifyRight','JustifyFull'],
 	['ShowBlocks']
 ];
 
@@ -280,24 +288,28 @@ FCKConfig.ToolbarSets["ForumLight"] = [
 ] ;
 
 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']
-] ;
+    ['Save','Preview','FitWindow','-','PasteText','PasteWord','-','Undo','Redo','-','RemoveFormat'],
+    ['Link','Unlink','Anchor'],
+    ['Image','imgmapPopup','flvPlayer','Flash','EmbedMovies','YouTube','MP3'],
+    ['Table','CreateDiv','Rule','SpecialChar'],
+    ['OrderedList','UnorderedList','-','Outdent','Indent','-','TextColor','BGColor'],
+    '/',    
+    ['Style','FontFormat','FontName','FontSize'],
+    ['Bold','Italic','Underline','StrikeThrough'],
+    ['Subscript','Superscript','-','JustifyLeft','JustifyCenter','JustifyRight','JustifyFull'],
+    ['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'],
+	['Save','Preview','FitWindow','-','PasteText','PasteWord','-','Undo','Redo','-','RemoveFormat'],
+    ['Link','Unlink','Anchor'],
+    ['Image','imgmapPopup','flvPlayer','Flash','EmbedMovies','YouTube','MP3'],
+    ['Table','CreateDiv','Rule','SpecialChar'],
+    ['OrderedList','UnorderedList','-','Outdent','Indent','-','TextColor','BGColor'],
+    '/',    
+    ['Style','FontFormat','FontName','FontSize'],
+    ['Bold','Italic','Underline','StrikeThrough'],
+    ['Subscript','Superscript','-','JustifyLeft','JustifyCenter','JustifyRight','JustifyFull'],
 	['ShowBlocks']
 ] ;
 
@@ -307,10 +319,11 @@ FCKConfig.ToolbarSets["Glossary"] = [
     ['Link','Unlink','Anchor'],
     ['Image','imgmapPopup','flvPlayer','Flash','EmbedMovies','YouTube','MP3'],
     ['Table','CreateDiv','Rule','SpecialChar'],
+    ['OrderedList','UnorderedList','-','Outdent','Indent','-','TextColor','BGColor'],
     '/',    
     ['Style','FontFormat','FontName','FontSize'],
     ['Bold','Italic','Underline','StrikeThrough'],
-    ['Subscript','Superscript','-','JustifyLeft','JustifyCenter','JustifyRight','JustifyFull','-','OrderedList','UnorderedList','-','Outdent','Indent','-','TextColor','BGColor'],
+    ['Subscript','Superscript','-','JustifyLeft','JustifyCenter','JustifyRight','JustifyFull'],
     ['Source']
 ] ;
 
@@ -320,10 +333,11 @@ FCKConfig.ToolbarSets["LearnPath"] = [
 	['Link','Unlink','Anchor'],
 	['Image','imgmapPopup','flvPlayer','Flash','EmbedMovies','YouTube','MP3'],
 	['Table','CreateDiv','Rule','SpecialChar'],
+	['Outdent','Indent','-','TextColor','BGColor','-','OrderedList','UnorderedList'],
 	'/',	
-	['FontFormat','FontName','FontSize'],
+	['Style','FontFormat','FontName','FontSize'],
 	['Bold','Italic','Underline','StrikeThrough'],
-	['Subscript','Superscript','-','JustifyLeft','JustifyCenter','JustifyRight','JustifyFull','-','OrderedList','UnorderedList','-','Outdent','Indent','-','TextColor','BGColor'],
+	['Subscript','Superscript','-','JustifyLeft','JustifyCenter','JustifyRight','JustifyFull'],
 	['Source']
 ] ;//save, FitWindow don't run well here
 
@@ -333,24 +347,28 @@ FCKConfig.ToolbarSets["CommentLearningPath"] = [
 
 //Notebook
 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']
+	['Save','Preview','FitWindow','-','PasteText','PasteWord','-','Undo','Redo','-','RemoveFormat'],
+    ['Link','Unlink','Anchor'],
+    ['Image','imgmapPopup','flvPlayer','Flash','EmbedMovies','YouTube','MP3'],
+    ['Table','CreateDiv','Rule','SpecialChar'],
+    ['OrderedList','UnorderedList','-','Outdent','Indent','-','TextColor','BGColor'],
+    '/',    
+    ['Style','FontFormat','FontName','FontSize'],
+    ['Bold','Italic','Underline','StrikeThrough'],
+    ['Subscript','Superscript','-','JustifyLeft','JustifyCenter','JustifyRight','JustifyFull'],
+    ['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'],
+	['Save','Preview','FitWindow','-','PasteText','PasteWord','-','Undo','Redo','-','RemoveFormat'],
+    ['Link','Unlink','Anchor'],
+    ['Image','imgmapPopup','flvPlayer','Flash','EmbedMovies','YouTube','MP3'],
+    ['Table','CreateDiv','Rule','SpecialChar'],
+    ['OrderedList','UnorderedList','-','Outdent','Indent','-','TextColor','BGColor'],
+    '/',    
+    ['Style','FontFormat','FontName','FontSize'],
+    ['Bold','Italic','Underline','StrikeThrough'],
+    ['Subscript','Superscript','-','JustifyLeft','JustifyCenter','JustifyRight','JustifyFull'],    
 	['ShowBlocks']
 ] ;
 
@@ -372,10 +390,11 @@ FCKConfig.ToolbarSets["TestDescription"] = [
     ['Link','Unlink','Anchor'],
     ['Image','imgmapPopup','flvPlayer','Flash','EmbedMovies','YouTube','MP3'],
     ['Table','CreateDiv','Rule','SpecialChar'],
+    ['OrderedList','UnorderedList','-','Outdent','Indent','-','TextColor','BGColor'],
     '/',    
     ['Style','FontFormat','FontName','FontSize'],
     ['Bold','Italic','Underline','StrikeThrough'],
-    ['Subscript','Superscript','-','JustifyLeft','JustifyCenter','JustifyRight','JustifyFull','-','OrderedList','UnorderedList','-','Outdent','Indent','-','TextColor','BGColor'],
+    ['Subscript','Superscript','-','JustifyLeft','JustifyCenter','JustifyRight','JustifyFull'],
     ['Source']
 ] ;
 
@@ -384,15 +403,16 @@ FCKConfig.ToolbarSets["QuestionDescription"] = [
     ['Link','Unlink','Anchor'],
     ['Image','imgmapPopup','flvPlayer','Flash','EmbedMovies','YouTube','MP3'],
     ['Table','CreateDiv','Rule','SpecialChar'],
+    ['OrderedList','UnorderedList','-','Outdent','Indent','-','TextColor','BGColor'],
     '/',    
     ['Style','FontFormat','FontName','FontSize'],
     ['Bold','Italic','Underline','StrikeThrough'],
-    ['Subscript','Superscript','-','JustifyLeft','JustifyCenter','JustifyRight','JustifyFull','-','OrderedList','UnorderedList','-','Outdent','Indent','-','TextColor','BGColor'],
+    ['Subscript','Superscript','-','JustifyLeft','JustifyCenter','JustifyRight','JustifyFull'],
     ['Source']
 ] ;
 
 FCKConfig.ToolbarSets["Answer"] = [
-	['FitWindow','Link','Unlink','Image','flvPlayer','Table','Bold','Italic','TextColor','Source']
+    ['FitWindow','Bold','Image','Link','PasteWord','MP3','Table','Subscript','Superscript','Source']	
 ] ;
 
 FCKConfig.ToolbarSets["CommentAnswers"] = [
@@ -422,6 +442,19 @@ FCKConfig.ToolbarSets["Wiki_Student"] = [
 	['ShowBlocks']
 ] ;
 
+//Gradebook
+FCKConfig.ToolbarSets["Gradebook"] = [
+    ['Save','Preview','FitWindow','-','PasteText','PasteWord','-','Undo','Redo','-','RemoveFormat'],
+    ['Link','Unlink','Anchor'],
+    ['Image','imgmapPopup','flvPlayer','Flash','EmbedMovies','YouTube','MP3'],
+    ['Table','CreateDiv','Rule','SpecialChar'],
+    ['OrderedList','UnorderedList','-','Outdent','Indent','-','TextColor','BGColor'],
+    '/',    
+    ['Style','FontFormat','FontName','FontSize'],
+    ['Bold','Italic','Underline','StrikeThrough'],
+    ['Subscript','Superscript','-','JustifyLeft','JustifyCenter','JustifyRight','JustifyFull'],
+    ['Source']
+] ;
 
 /*
  * Toolbar drop-down lists customizations.

+ 1 - 1
main/newscorm/document.php

@@ -195,7 +195,7 @@ api_display_tool_title($nameTools);
 //TODO: check see if we need, it seems not working here
 $fck_attribute['Width'] = '100%';
 $fck_attribute['Height'] = '400';
-$fck_attribute['ToolbarSet'] = 'Full';
+$fck_attribute['ToolbarSet'] = 'LearnPath';
 
 // TODO: These settings to be checked when it is possible.
 $fck_attribute['Config']['InDocument'] = false;

+ 1 - 1
main/newscorm/lp_controller.php

@@ -160,7 +160,7 @@ $_SESSION['oLP']->message = ''; //should use ->clear_message() method but doesn'
 // Some common default settings for the online editor. Other settings are calculated in formvalidator module.
 // For editing document type lp-items specific settings are set/calculated, see learnpath.class.php
 //TODO: check, see if we need, it seems not working here
-$fck_attribute['ToolbarSet'] = 'Full';
+$fck_attribute['ToolbarSet'] = 'LearnPath';
 $fck_attribute['Width'] = '100%';
 $fck_attribute['Height'] = '400';