Forráskód Böngészése

[svn r22256] FS#2867 - The online editor: Renaming a toolbar, 'TestAnswerAttachedComment' --> 'TestAnswerFeedback'. Removing 'Small' toolbar.

Ivan Tcholakov 15 éve
szülő
commit
335018c44d

+ 2 - 2
main/exercice/exercise_show.php

@@ -4,7 +4,7 @@
 *
 *	@package dokeos.exercise
 * 	@author Julio Montoya Armas Added switchable fill in blank option added
-* 	@version $Id: exercise_show.php 22240 2009-07-20 13:35:37Z ivantcholakov $
+* 	@version $Id: exercise_show.php 22256 2009-07-20 17:40:20Z ivantcholakov $
 *
 * 	@todo remove the debug code and use the general debug library
 * 	@todo use the Database:: functions
@@ -944,7 +944,7 @@ if ($show_results) {
 			$renderer->setElementTemplate('<div align="left">{element}</div>');
 			$comnt = get_comments($id,$questionId);
 			${user.$questionId}['comments_'.$questionId] = $comnt;
-		$feedback_form->addElement('html_editor', 'comments_'.$questionId, null, null, array('ToolbarSet' => 'TestAnswerAttachedComment', 'Width' => '100%', 'Height' => '120'));
+			$feedback_form->addElement('html_editor', 'comments_'.$questionId, null, null, array('ToolbarSet' => 'TestAnswerFeedback', 'Width' => '100%', 'Height' => '120'));
 			$feedback_form->addElement('html','<br>');
 			//$feedback_form->addElement('submit','submitQuestion',get_lang('Ok'));
 			$feedback_form->setDefaults(${user.$questionId});							

+ 1 - 2
main/exercice/feedback.php

@@ -87,8 +87,7 @@ Display::display_header($nameTools,"Exercise");
 		<!-- BEGIN error --><br /><span style="color: #ff0000;font-size:10px">{error}</span><!-- END error -->
 	</td>
 </tr>');
-	//TODO: Maybe another toolbar set would be better.
-	$form->add_html_editor('Feedback', $i.'.'.$ans, false, false, array('ToolbarSet' => 'Small', 'Width' => '600', 'Height' => '200'));
+	$form->add_html_editor('Feedback', $i.'.'.$ans, false, false, array('ToolbarSet' => 'TestAnswerFeedback', 'Width' => '600', 'Height' => '200'));
 	$form->display();
 	echo "</td>";
 	}?>

+ 0 - 38
main/inc/lib/fckeditor/toolbars/small.php

@@ -1,38 +0,0 @@
-<?php
-
-// For more information: http://docs.fckeditor.net/FCKeditor_2.x/Developers_Guide/Configuration/Configuration_Options
-
-// This is the visible toolbar set when the editor has "normal" size.
-$config['ToolbarSets']['Normal'] = array(
-	array('Bold','Italic','Underline','StrikeThrough','Link','Unlink','Image','Flash','OrderedList','UnorderedList','Table')
-);
-
-// This is the visible toolbar set when the editor is maximized.
-// If it has not been defined, then the toolbar set for the "normal" size is used.
-/*
-$config['ToolbarSets']['Maximized'] = array(
-	array('FitWindow','-') // ...
-);
-*/
-
-// Sets whether the toolbar can be collapsed/expanded or not.
-// Possible values: true , false
-//$config['ToolbarCanCollapse'] = true;
-
-// Sets how the editor's toolbar should start - expanded or collapsed.
-// Possible values: true , false
-//$config['ToolbarStartExpanded'] = true;
-
-//This option sets the location of the toolbar.
-// Possible values: 'In' , 'None' , 'Out:[TargetId]' , 'Out:[TargetWindow]([TargetId])'
-//$config['ToolbarLocation'] = 'In';
-
-// A setting for blocking copy/paste functions of the editor.
-// This setting activates on leaners only. For users with other statuses there is no blocking copy/paste.
-// Possible values: true , false
-//$config['BlockCopyPaste'] = false;
-
-// Here new width and height of the editor may be set.
-// Possible values, examples: 300 , '250' , '100%' , ...
-//$config['Width'] = '100%';
-//$config['Height'] = '300';

+ 0 - 0
main/inc/lib/fckeditor/toolbars/test_answer_attached_comment.php → main/inc/lib/fckeditor/toolbars/test_answer_feedback.php


+ 0 - 0
main/inc/lib/fckeditor/toolbars_maxi/test_answer_attached_comment.php → main/inc/lib/fckeditor/toolbars_maxi/test_answer_feedback.php