chosen by the facilitator.</p>
<p>The essay question will not be assigned a grade until it has been reviewed by a teacher
- or facilitator by using the Manual Grading feature. When manually grading an essay
- question, the grader will be able to enter a custom comment in response to the respondent's
- essay and be able to assign a score for the essay.</p>
\ No newline at end of file
+ question, the grader will be able to enter a custom comment in response the respondent's
+ essay and be able to assign a score for the essay.</p>
+
+<p>Normally, the student can type their answer using the rich-text editor. However,
+ if there is more than one essay question on a page, the rich-text editor is
+ only used for the first essay question.</p>
\ No newline at end of file
function print_question_formulation_and_controls(&$question, &$state, $cmoptions, $options) {
global $CFG;
+ static $htmleditorused = false;
$answers = &$question->options->answers;
$readonly = empty($options->readonly) ? '' : 'disabled="disabled"';
- $usehtmleditor = can_use_html_editor();
+
+ // Only use the rich text editor for the first essay question on a page.
+ $usehtmleditor = can_use_html_editor() && !$htmleditorused;
$formatoptions = new stdClass;
$formatoptions->noclean = true;
if ($usehtmleditor) {
use_html_editor($inputname);
+ $htmleditorused = true;
}
}