Browse Source

[svn r22250] FS#2867 - The online editor: Renaming a toolbar, 'QuestionDescription' --> 'TestQuestionDescription'.

Ivan Tcholakov 15 years ago
parent
commit
ee2eecea04

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

@@ -149,7 +149,7 @@ class FillBlanks extends Question
 
 		// answer
 		$form -> addElement ('html', '<br /><br /><div class="row"><div class="label"></div><div class="formw">'.get_lang('TypeTextBelow').', '.get_lang('And').' '.get_lang('UseTagForBlank').'</div></div>');						
-		$form -> addElement ('html_editor', 'answer', '<img src="../img/fill_field.png">','id="answer" cols="122" rows="6" onkeyup="javascript: updateBlanks(this);"', array('ToolbarSet' => 'QuestionDescription', 'Width' => '100%', 'Height' => '350'));
+		$form -> addElement ('html_editor', 'answer', '<img src="../img/fill_field.png">','id="answer" cols="122" rows="6" onkeyup="javascript: updateBlanks(this);"', array('ToolbarSet' => 'TestQuestionDescription', 'Width' => '100%', 'Height' => '350'));
 
 		$form -> addRule ('answer',get_lang('GiveText'),'required');
 		$form -> addRule ('answer',get_lang('DefineBlanks'),'regex','/\[.*\]/');

+ 3 - 3
main/exercice/question.class.php

@@ -1,4 +1,4 @@
-<?php // $Id: question.class.php 22051 2009-07-14 04:50:33Z ivantcholakov $
+<?php // $Id: question.class.php 22250 2009-07-20 16:41:20Z ivantcholakov $
  
 /*
 ==============================================================================
@@ -28,7 +28,7 @@
 *	File containing the Question class.
 *	@package dokeos.exercise
 * 	@author Olivier Brouckaert
-* 	@version $Id: question.class.php 22051 2009-07-14 04:50:33Z ivantcholakov $
+* 	@version $Id: question.class.php 22250 2009-07-20 16:41:20Z ivantcholakov $
 */
 
 
@@ -992,7 +992,7 @@ abstract class Question
 		$form->addElement('hidden','answerType',$_REQUEST['answerType']);
 
 		// html editor
-		$editor_config = array('ToolbarSet' => 'QuestionDescription', 'Width' => '100%', 'Height' => '150');
+		$editor_config = array('ToolbarSet' => 'TestQuestionDescription', 'Width' => '100%', 'Height' => '150');
 		if(is_array($fck_config)){
 			$editor_config = array_merge($editor_config, $fck_config);
 		}		

+ 0 - 0
main/inc/lib/fckeditor/toolbars/question_description.php → main/inc/lib/fckeditor/toolbars/test_question_description.php


+ 0 - 0
main/inc/lib/fckeditor/toolbars_maxi/question_description.php → main/inc/lib/fckeditor/toolbars_maxi/test_question_description.php