Permalink
Browse files

Fix Javascript error from essay questions on the review page.

  • Loading branch information...
1 parent fb18d9c commit 1bc05922bc72ec582be9f984c2275a0586011d58 tjhunt committed Dec 12, 2007
Showing with 2 additions and 2 deletions.
  1. +2 −2 question/type/essay/questiontype.php
@@ -95,10 +95,10 @@ function print_question_formulation_and_controls(&$question, &$state, $cmoptions
$answer = format_text($value, FORMAT_MOODLE,
$safeformatoptions, $cmoptions->course);
}
-
+
include("$CFG->dirroot/question/type/essay/display.html");
- if ($usehtmleditor) {
+ if ($usehtmleditor && empty($options->readonly)) {
use_html_editor($inputname);
$htmleditorused = true;
}

0 comments on commit 1bc0592

Please sign in to comment.