From 6063faed882d47ac0c830a6784ce71a57716f9e5 Mon Sep 17 00:00:00 2001 From: Julian Prud'homme Date: Fri, 9 Feb 2007 13:57:27 +0100 Subject: [PATCH] [svn r11087] change the toolbar of the fckeditor in Tests --- main/exercice/multiple_answer.class.php | 4 ++-- main/exercice/question.class.php | 4 ++-- main/exercice/unique_answer.class.php | 4 ++-- main/inc/lib/fckeditor/myconfig.js | 4 ++++ 4 files changed, 10 insertions(+), 6 deletions(-) diff --git a/main/exercice/multiple_answer.class.php b/main/exercice/multiple_answer.class.php index 921b564b79..6f32365ff4 100644 --- a/main/exercice/multiple_answer.class.php +++ b/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/'; diff --git a/main/exercice/question.class.php b/main/exercice/question.class.php index e19825099c..f6187103f1 100644 --- a/main/exercice/question.class.php +++ b/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'; diff --git a/main/exercice/unique_answer.class.php b/main/exercice/unique_answer.class.php index 08582a613a..3c864b0970 100644 --- a/main/exercice/unique_answer.class.php +++ b/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/'; diff --git a/main/inc/lib/fckeditor/myconfig.js b/main/inc/lib/fckeditor/myconfig.js index a7ab6f1cc3..62141032be 100644 --- a/main/inc/lib/fckeditor/myconfig.js +++ b/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'] ] ;