Explorar el Código

[svn r22239] FS#2867 - The online editor: Renaming a toolbar, 'Answer' --> 'TestProposedAnswer'.

Ivan Tcholakov hace 15 años
padre
commit
2d64b134d8

+ 1 - 1
main/exercice/hotspot_admin.inc.php

@@ -313,7 +313,7 @@ if($modifyAnswers)
 						require_once(api_get_path(LIBRARY_PATH) . "/fckeditor/fckeditor.php");
 						$oFCKeditor = new FCKeditor("comment[$i]") ;
 						$content = $comment[$i];
-						$oFCKeditor->ToolbarSet = 'Answer';	
+						$oFCKeditor->ToolbarSet = 'TestProposedAnswer';	
 						$oFCKeditor->Config['ToolbarStartExpanded'] = 'false';		
 						$oFCKeditor->Width		= '100%';
 						$oFCKeditor->Height		= '100';

+ 2 - 2
main/exercice/multiple_answer.class.php

@@ -131,9 +131,9 @@ class MultipleAnswer extends Question {
 			$form->addElement('checkbox', 'correct['.$i.']', null, null, 'class="checkbox" style="margin-left: 0em;"');
 			$boxes_names[] = 'correct['.$i.']';
 			
-			$form->addElement('html_editor', 'answer['.$i.']',null, 'style="vertical-align:middle"', array('ToolbarSet' => 'Answer', 'Width' => '100%', 'Height' => '100'));
+			$form->addElement('html_editor', 'answer['.$i.']',null, 'style="vertical-align:middle"', array('ToolbarSet' => 'TestProposedAnswer', 'Width' => '100%', 'Height' => '100'));
 			$form->addRule('answer['.$i.']', get_lang('ThisFieldIsRequired'), 'required');
-			$form->addElement('html_editor', 'comment['.$i.']',null, 'style="vertical-align:middle"', array('ToolbarSet' => 'Answer', 'Width' => '100%', 'Height' => '100'));
+			$form->addElement('html_editor', 'comment['.$i.']',null, 'style="vertical-align:middle"', array('ToolbarSet' => 'TestProposedAnswer', 'Width' => '100%', 'Height' => '100'));
 			$form->addElement('text', 'weighting['.$i.']',null, 'style="vertical-align:middle;margin-left: 0em;" size="5" value="10"');
 			$form -> addElement ('html', '</tr>');
 		}

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

@@ -62,7 +62,7 @@ class UniqueAnswer extends Question {
 		// getting the exercise list	
 		$obj_ex =$_SESSION['objExercise'];
 
-		$editor_config = array('ToolbarSet' => 'Answer', 'Width' => '100%', 'Height' => '125');
+		$editor_config = array('ToolbarSet' => 'TestProposedAnswer', 'Width' => '100%', 'Height' => '125');
 
 		//this line define how many question by default appear when creating a choice question
 		$nb_answers = isset($_POST['nb_answers']) ? (int) $_POST['nb_answers'] : 2;

+ 0 - 0
main/inc/lib/fckeditor/toolbars/answer.php → main/inc/lib/fckeditor/toolbars/test_proposed_answer.php


+ 0 - 0
main/inc/lib/fckeditor/toolbars_maxi/answer.php → main/inc/lib/fckeditor/toolbars_maxi/test_proposed_answer.php