diff --git a/main/exercise/UniqueAnswerImage.php b/main/exercise/UniqueAnswerImage.php index 559a4149ea..9553fcd681 100644 --- a/main/exercise/UniqueAnswerImage.php +++ b/main/exercise/UniqueAnswerImage.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'); diff --git a/main/exercise/multiple_answer.class.php b/main/exercise/multiple_answer.class.php index 1c909f88c6..c8119a0be9 100755 --- a/main/exercise/multiple_answer.class.php +++ b/main/exercise/multiple_answer.class.php @@ -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(''); diff --git a/main/exercise/multiple_answer_true_false.class.php b/main/exercise/multiple_answer_true_false.class.php index bf7a2ac1b0..f2253ef4fd 100755 --- a/main/exercise/multiple_answer_true_false.class.php +++ b/main/exercise/multiple_answer_true_false.class.php @@ -141,7 +141,7 @@ class MultipleAnswerTrueFalse extends Question "answer[$i]", get_lang('ThisFieldIsRequired'), true, - true, + false, ['ToolbarSet' => 'TestProposedAnswer', 'Width' => '100%', 'Height' => '100'] ); diff --git a/main/exercise/unique_answer.class.php b/main/exercise/unique_answer.class.php index bde962d8f9..8c9525630d 100755 --- a/main/exercise/unique_answer.class.php +++ b/main/exercise/unique_answer.class.php @@ -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.']',