Browse Source

[svn r17265] FS#2867 - Resizing the FCKEditor in the Tests tool.

Ivan Tcholakov 16 years ago
parent
commit
19299f23a5

+ 5 - 4
main/exercice/exercise.lib.php

@@ -1,4 +1,4 @@
-<?php // $Id: exercise.lib.php 16726 2008-11-12 15:44:48Z pcool $
+<?php // $Id: exercise.lib.php 17265 2008-12-13 14:00:10Z ivantcholakov $
  
 /*
 ==============================================================================
@@ -29,7 +29,7 @@
 * 	shows a question and its answers
 *	@package dokeos.exercise
 * 	@author Olivier Brouckaert <oli.brouckaert@skynet.be>
-* 	@version $Id: exercise.lib.php 16726 2008-11-12 15:44:48Z pcool $
+* 	@version $Id: exercise.lib.php 17265 2008-12-13 14:00:10Z ivantcholakov $
 */
 
 
@@ -99,7 +99,8 @@ function showQuestion($questionId, $onlyAnswers=false, $origin=false)
 			$oFCKeditor->Config['CustomConfigurationsPath'] = api_get_path(REL_PATH)."main/inc/lib/fckeditor/myconfig.js";
 			$oFCKeditor->Config['IMUploadPath'] = 'upload/test/';
 			$oFCKeditor->ToolbarSet = "Test";
-			$oFCKeditor->Width  = '80%';
+			//$oFCKeditor->Width  = '80%';
+			$oFCKeditor->Width  = '100%';
 			$oFCKeditor->Height = '300';
 			$oFCKeditor->Value	= '' ;
 
@@ -445,4 +446,4 @@ function showQuestion($questionId, $onlyAnswers=false, $origin=false)
 
 	return $nbrAnswers;
 }
-?>
+?>

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

@@ -66,7 +66,8 @@ class MultipleAnswer extends Question {
 		global $fck_attribute;
 
 		$fck_attribute = array();
-		$fck_attribute['Width'] = '348px';
+		//$fck_attribute['Width'] = '348px';
+		$fck_attribute['Width'] = '100%';
 		$fck_attribute['Height'] = '100px';
 		$fck_attribute['ToolbarSet'] = 'Test';
 		$fck_attribute['Config']['IMUploadPath'] = 'upload/test/';
@@ -214,4 +215,4 @@ class MultipleAnswer extends Question {
 }
 
 endif;
-?>
+?>

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

@@ -60,7 +60,8 @@ class UniqueAnswer extends Question {
 		global $fck_attribute;
 
 		$fck_attribute = array();
-		$fck_attribute['Width'] = '348px';
+		//$fck_attribute['Width'] = '348px';
+		$fck_attribute['Width'] = '100%';
 		$fck_attribute['Height'] = '100px';
 		$fck_attribute['ToolbarSet'] = 'Test';
 		$fck_attribute['Config']['IMUploadPath'] = 'upload/test/';