From 19299f23a5625a19a26359a80aeadd9a9541ed67 Mon Sep 17 00:00:00 2001 From: Ivan Tcholakov Date: Sat, 13 Dec 2008 15:00:10 +0100 Subject: [PATCH] [svn r17265] FS#2867 - Resizing the FCKEditor in the Tests tool. --- main/exercice/exercise.lib.php | 9 +++++---- main/exercice/multiple_answer.class.php | 5 +++-- main/exercice/unique_answer.class.php | 3 ++- 3 files changed, 10 insertions(+), 7 deletions(-) diff --git a/main/exercice/exercise.lib.php b/main/exercice/exercise.lib.php index 626a6507df..ca4ecc7ef7 100644 --- a/main/exercice/exercise.lib.php +++ b/main/exercice/exercise.lib.php @@ -1,4 +1,4 @@ - -* @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; } -?> \ No newline at end of file +?> diff --git a/main/exercice/multiple_answer.class.php b/main/exercice/multiple_answer.class.php index 2e4da4d70d..05207ad4f7 100644 --- a/main/exercice/multiple_answer.class.php +++ b/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; -?> \ No newline at end of file +?> diff --git a/main/exercice/unique_answer.class.php b/main/exercice/unique_answer.class.php index 6e96bb7f3d..0da457d66b 100644 --- a/main/exercice/unique_answer.class.php +++ b/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/';