1.10.x
Julio 9 years ago
parent 0907a64acd
commit 5168e917b8
  1. 2
      main/exercice/calculated_answer.class.php
  2. 2
      main/exercice/fill_blanks.class.php
  3. 7
      main/exercice/global_multiple_answer.class.php

@ -126,7 +126,7 @@ class CalculatedAnswer extends Question
$form->addElement(
'html_editor',
'answer',
Display::returnIconPath('fill_field.png'),
Display::return_icon('fill_field.png'),
array(
'id' => 'answer',
'onkeyup' => 'javascript: updateBlanks(this);'

@ -254,7 +254,7 @@ class FillBlanks extends Question
$form->addElement(
'html_editor',
'answer',
Display::returnIconPath('fill_field.png'),
Display::return_icon('fill_field.png'),
['id' => 'answer', 'onkeyup' => "javascript: updateBlanks(this);"],
array('ToolbarSet' => 'TestQuestionDescription')
);

@ -45,7 +45,12 @@ class GlobalMultipleAnswer extends Question
$html .='<th>' . get_lang('Comment') . '</th>';
$html .='</tr>';
$form->addElement('label', get_lang('Answers') . '<br /> '.Display::returnIconPath('fill_field.png'), $html);
$form->addElement(
'label',
get_lang('Answers') .
'<br /> '.Display::return_icon('fill_field.png'),
$html
);
$defaults = array();
$correct = 0;
$answer = false;

Loading…
Cancel
Save