Fix full page ckeditor, makes pdf export to fail. see BT#13394

pull/2487/head
jmontoyaa 7 years ago
parent 298eaa3d7b
commit 0e0f77a232
  1. 2
      main/exercise/UniqueAnswerImage.php
  2. 4
      main/exercise/multiple_answer.class.php
  3. 2
      main/exercise/multiple_answer_true_false.class.php
  4. 5
      main/exercise/unique_answer.class.php

@ -192,7 +192,7 @@ class UniqueAnswerImage extends UniqueAnswer
$answerNumber->freeze();
$form->addElement('radio', 'correct', null, null, $i, 'class="checkbox"');
$form->addHtmlEditor('answer['.$i.']', null, null, true, $editorConfig);
$form->addHtmlEditor('answer['.$i.']', null, null, false, $editorConfig);
$form->addRule('answer['.$i.']', get_lang('ThisFieldIsRequired'), 'required');

@ -131,10 +131,10 @@ class MultipleAnswer extends Question
);
$boxes_names[] = 'correct['.$i.']';
$form->addHtmlEditor("answer[$i]", null, null, true, $editorConfig);
$form->addHtmlEditor("answer[$i]", null, null, false, $editorConfig);
$form->addRule('answer['.$i.']', get_lang('ThisFieldIsRequired'), 'required');
$form->addHtmlEditor("comment[$i]", null, null, true, $editorConfig);
$form->addHtmlEditor("comment[$i]", null, null, false, $editorConfig);
$form->addElement('text', 'weighting['.$i.']', null, array('style' => "width: 60px;", 'value' => '0'));
$form->addHtml('</tr>');

@ -141,7 +141,7 @@ class MultipleAnswerTrueFalse extends Question
"answer[$i]",
get_lang('ThisFieldIsRequired'),
true,
true,
false,
['ToolbarSet' => 'TestProposedAnswer', 'Width' => '100%', 'Height' => '100']
);

@ -105,7 +105,8 @@ class UniqueAnswer extends Question
}
$question = Question::read($questionid);
$select_question[$questionid] = 'Q'.$key.' :'.cut(
$question->selectTitle(), 20
$question->selectTitle(),
20
);
}
}
@ -214,7 +215,7 @@ class UniqueAnswer extends Question
'class="checkbox"'
);
$form->addHtmlEditor('answer['.$i.']', null, null, true, $editor_config);
$form->addHtmlEditor('answer['.$i.']', null, null, false, $editor_config);
$form->addRule(
'answer['.$i.']',

Loading…
Cancel
Save