Просмотр исходного кода

[svn r11087] change the toolbar of the fckeditor in Tests

Julian Prud'homme 18 лет назад
Родитель
Сommit
6063faed88

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

@@ -60,9 +60,9 @@ class MultipleAnswer extends Question {
 		global $fck_attribute;
 
 		$fck_attribute = array();
-		$fck_attribute['Width'] = '300px';
+		$fck_attribute['Width'] = '320px';
 		$fck_attribute['Height'] = '100px';
-		$fck_attribute['ToolbarSet'] = 'Small';
+		$fck_attribute['ToolbarSet'] = 'Test';
 		$fck_attribute['Config']['IMUploadPath'] = 'upload/test/';
 		$fck_attribute['Config']['FlashUploadPath'] = 'upload/test/';
 

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

@@ -22,7 +22,7 @@
 *	File containing the Question class.
 *	@package dokeos.exercise
 * 	@author Olivier Brouckaert
-* 	@version $Id: question.class.php 11066 2007-02-07 09:39:47Z elixir_julian $
+* 	@version $Id: question.class.php 11087 2007-02-09 12:57:27Z elixir_julian $
 */
 
 
@@ -742,7 +742,7 @@ abstract class Question
 		$fck_attribute = array();
 		$fck_attribute['Width'] = '100%';
 		$fck_attribute['Height'] = '150';
-		$fck_attribute['ToolbarSet'] = 'Small';
+		$fck_attribute['ToolbarSet'] = 'Test';
 		$fck_attribute['Config']['IMUploadPath'] = 'upload/test/';
 		$fck_attribute['Config']['FlashUploadPath'] = 'upload/test/';
 		if(!api_is_allowed_to_edit()) $fck_attribute['Config']['UserStatus'] = 'student';

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

@@ -60,9 +60,9 @@ class UniqueAnswer extends Question {
 		global $fck_attribute;
 
 		$fck_attribute = array();
-		$fck_attribute['Width'] = '300px';
+		$fck_attribute['Width'] = '320px';
 		$fck_attribute['Height'] = '100px';
-		$fck_attribute['ToolbarSet'] = 'Small';
+		$fck_attribute['ToolbarSet'] = 'Test';
 		$fck_attribute['Config']['IMUploadPath'] = 'upload/test/';
 		$fck_attribute['Config']['FlashUploadPath'] = 'upload/test/';
 

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

@@ -52,6 +52,10 @@ FCKConfig.ToolbarSets["NewTest"] = [
 	['Bold','Italic','Underline','StrikeThrough','Link','ImageManager','Flash','MP3','OrderedList','UnorderedList','Table']
 ] ;
 
+FCKConfig.ToolbarSets["Test"] = [
+	['Bold','Italic','Underline','StrikeThrough','Link','ImageManager','Flash','MP3','OrderedList','UnorderedList','Table']
+] ;
+
 FCKConfig.ToolbarSets["Survey"] = [
 	['FontSize','Bold','Italic','TextColor','-','OrderedList','UnorderedList','-','Rule','Link','Table','-','ImageManager']
 ] ;