[svn r19407] a specific bar for free answers

skala
Juan Carlos Raña 16 years ago
parent 6d42fe83ae
commit b82e8478cd
  1. 8
      main/exercice/exercise.lib.php
  2. 6
      main/inc/lib/fckeditor/myconfig.js

@ -1,4 +1,4 @@
<?php // $Id: exercise.lib.php 18541 2009-02-17 14:48:55Z cfasanando $
<?php // $Id: exercise.lib.php 19407 2009-03-29 19:37:05Z herodoto $
/*
==============================================================================
@ -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 18541 2009-02-17 14:48:55Z cfasanando $
* @version $Id: exercise.lib.php 19407 2009-03-29 19:37:05Z herodoto $
*/
/**
@ -118,8 +118,8 @@ function showQuestion($questionId, $onlyAnswers=false, $origin=false,$current_it
$oFCKeditor = new FCKeditor("choice[".$questionId."]") ;
$oFCKeditor->ToolbarSet = "Answer";
$oFCKeditor->Width = '80%';
$oFCKeditor->ToolbarSet = "FreeAnswer";
$oFCKeditor->Width = '100%';
$oFCKeditor->Height = '300';
$oFCKeditor->Value = '' ;

@ -35,7 +35,7 @@ FCKConfig.ToolbarSets["Middle"] = [
FCKConfig.ToolbarSets["Small"] = [
['Bold','Italic','Underline','StrikeThrough','Link','Unlink','Image','Flash','OrderedList','UnorderedList','Table']
] ;//used by test ?
] ;//used by test ? exercice/feedback.php
////
///// admin tools /////
@ -415,6 +415,10 @@ FCKConfig.ToolbarSets["Answer"] = [
['FitWindow','Bold','Image','Link','PasteWord','MP3','Table','Subscript','Superscript','Source']
] ;
FCKConfig.ToolbarSets["FreeAnswer"] = [
['FitWindow','Bold','Image','Link','PasteWord','MP3','Table','Subscript','Superscript','ShowBlocks']
] ;
FCKConfig.ToolbarSets["CommentAnswers"] = [
['FitWindow','Link','Unlink','Image','flvPlayer','Table','Bold','Italic','TextColor','BGColor','Source']
] ;

Loading…
Cancel
Save