</table>
</FORM>
-<? if ($usehtmleditor) { ?>
- <SCRIPT language="JavaScript" event="onload" for="window">
- document.richedit.options = "history=no;source=no";
- document.richedit.docHtml = theform.message.innerText;
- </SCRIPT>
-<? } ?>
+<?
+ if ($usehtmleditor) {
+ print_richedit_javascript("theform", "message", "no");
+ }
+?>
</P>
</FORM>
-<? if ($usehtmleditor) { ?>
- <SCRIPT language="JavaScript" event="onload" for="window">
- document.richedit.options = "history=no;source=no";
- document.richedit.docHtml = theform.text.innerText;
- </SCRIPT>
-<? } ?>
+<?
+ if ($usehtmleditor) {
+ print_richedit_javascript("theform", "text", "no");
+ }
+?>
echo "<P><FONT SIZE=1>".get_string("lastedited").": ".userdate($entry->modified)."</FONT></P>";
}
if ($entry->text) {
- echo text_to_html($entry->text);
+ echo format_text($entry->text, $entry->format);
}
if ($entry->teacher) {
journal_print_feedback($course, $entry);
echo "\n<TR><TD WIDTH=100% BGCOLOR=\"$THEME->cellcontent\">";
if ($entry) {
- echo text_to_html($entry->text);
+ echo format_text($entry->text, $entry->format);
} else {
print_string("noentry", "journal");
}