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

skala
Julian Prud'homme 19 years ago
parent 141bbe5163
commit 6063faed88
  1. 4
      main/exercice/multiple_answer.class.php
  2. 4
      main/exercice/question.class.php
  3. 4
      main/exercice/unique_answer.class.php
  4. 4
      main/inc/lib/fckeditor/myconfig.js

@ -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/';

@ -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';

@ -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/';

@ -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']
] ;

Loading…
Cancel
Save