From: moodler
Date: Sat, 12 Oct 2002 15:01:17 +0000 (+0000)
Subject: Tweaks to use new javascript-printing function etc
X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=5a84640bd1a2953963809f844a788df1d2d5de86;p=moodle.git
Tweaks to use new javascript-printing function etc
---
diff --git a/mod/forum/post.html b/mod/forum/post.html
index 765a41fef3..ef1d4efbe5 100644
--- a/mod/forum/post.html
+++ b/mod/forum/post.html
@@ -58,10 +58,9 @@
- if ($usehtmleditor) { ?>
-
- } ?>
+
+ if ($usehtmleditor) {
+ print_richedit_javascript("theform", "message", "no");
+ }
+?>
diff --git a/mod/journal/edit.html b/mod/journal/edit.html
index 6b76d8ad59..1284bd0a02 100644
--- a/mod/journal/edit.html
+++ b/mod/journal/edit.html
@@ -21,10 +21,9 @@
- if ($usehtmleditor) { ?>
-
- } ?>
+
+ if ($usehtmleditor) {
+ print_richedit_javascript("theform", "text", "no");
+ }
+?>
diff --git a/mod/journal/lib.php b/mod/journal/lib.php
index 2d55f519a0..be2ba5d1fa 100644
--- a/mod/journal/lib.php
+++ b/mod/journal/lib.php
@@ -32,7 +32,7 @@ function journal_user_complete($course, $user, $mod, $journal) {
echo "".get_string("lastedited").": ".userdate($entry->modified)."
";
}
if ($entry->text) {
- echo text_to_html($entry->text);
+ echo format_text($entry->text, $entry->format);
}
if ($entry->teacher) {
journal_print_feedback($course, $entry);
@@ -190,7 +190,7 @@ function journal_print_user_entry($course, $user, $entry, $teachers, $ratings) {
echo "\ncellcontent\">";
if ($entry) {
- echo text_to_html($entry->text);
+ echo format_text($entry->text, $entry->format);
} else {
print_string("noentry", "journal");
}
|