Skip to content

Commit

Permalink
Fixed up HTML editor
Browse files Browse the repository at this point in the history
  • Loading branch information
moodler committed Aug 4, 2004
1 parent 7fc654d commit 64e92a7
Showing 1 changed file with 8 additions and 14 deletions.
22 changes: 8 additions & 14 deletions mod/quiz/questiontypes/calculated/calculated.html
Expand Up @@ -37,7 +37,7 @@
echo "<br />";
}

print_textarea($usehtmleditor, 15, 60, 630, 300, "questiontext", $question->questiontext);
print_textarea($usehtmleditor, 20, 60, 630, 300, "questiontext", $question->questiontext);

if ($usehtmleditor) { /// Trying this out for a while
echo '<input type="hidden" name="questiontextformat" value="'.FORMAT_HTML.'">';
Expand Down Expand Up @@ -140,12 +140,12 @@
?>
</TABLE>

<INPUT type="hidden" name=id value="<?php p($question->id) ?>">
<INPUT type="hidden" name=qtype value="<?php p($question->qtype) ?>">
<INPUT type="submit" onClick="return determineMinAndMax();" value="<?php print_string("savechanges") ?>">
</CENTER>
</FORM>
<SCRIPT language="JAVASCRIPT">
<input type="hidden" name=id value="<?php p($question->id) ?>">
<input type="hidden" name=qtype value="<?php p($question->qtype) ?>">
<input type="submit" onClick="return determineMinAndMax();" value="<?php print_string("savechanges") ?>">
</center>
</form>
<script language="javascript">
function determineMinAndMax() {
// This client-side script will determine the values for min and max
// based on the input for answer and acceptederror.
Expand All @@ -168,10 +168,4 @@
}
}
}
</SCRIPT>
<?php
if ($usehtmleditor) {
print_richedit_javascript("theform", "questiontext", "no");
}
?>

</script>

0 comments on commit 64e92a7

Please sign in to comment.