Skip to content

Commit

Permalink
Fix full page ckeditor, makes pdf export to fail. see BT#13394
Browse files Browse the repository at this point in the history
  • Loading branch information
jmontoyaa committed Sep 25, 2017
1 parent 298eaa3 commit 0e0f77a
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion main/exercise/UniqueAnswerImage.php
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ public function createAnswersForm($form)
$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');

Expand Down
4 changes: 2 additions & 2 deletions main/exercise/multiple_answer.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -131,10 +131,10 @@ public function createAnswersForm($form)
);
$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>');
Expand Down
2 changes: 1 addition & 1 deletion main/exercise/multiple_answer_true_false.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ public function createAnswersForm($form)
"answer[$i]",
get_lang('ThisFieldIsRequired'),
true,
true,
false,
['ToolbarSet' => 'TestProposedAnswer', 'Width' => '100%', 'Height' => '100']
);

Expand Down
5 changes: 3 additions & 2 deletions main/exercise/unique_answer.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,8 @@ public function createAnswersForm($form)
}
$question = Question::read($questionid);
$select_question[$questionid] = 'Q'.$key.' :'.cut(
$question->selectTitle(), 20
$question->selectTitle(),
20
);
}
}
Expand Down Expand Up @@ -214,7 +215,7 @@ public function createAnswersForm($form)
'class="checkbox"'
);

$form->addHtmlEditor('answer['.$i.']', null, null, true, $editor_config);
$form->addHtmlEditor('answer['.$i.']', null, null, false, $editor_config);

$form->addRule(
'answer['.$i.']',
Expand Down

0 comments on commit 0e0f77a

Please sign in to comment.