From 4b00b4b34ac82af6bc96fcbb376d4da6b1a726a1 Mon Sep 17 00:00:00 2001 From: moodler Date: Mon, 3 Nov 2003 16:49:37 +0000 Subject: [PATCH] Update to use new editor stuff --- mod/forum/post.html | 11 ++--------- mod/forum/post.php | 10 ++++++---- 2 files changed, 8 insertions(+), 13 deletions(-) diff --git a/mod/forum/post.html b/mod/forum/post.html index 581752aab4..a709c584be 100644 --- a/mod/forum/post.html +++ b/mod/forum/post.html @@ -1,4 +1,4 @@ -
enctype="multipart/form-data"> + @@ -11,7 +11,7 @@ :

@@ -112,10 +112,3 @@

:

- message); ?> + message); ?>
- - - diff --git a/mod/forum/post.php b/mod/forum/post.php index d376fa9638..6c296141db 100644 --- a/mod/forum/post.php +++ b/mod/forum/post.php @@ -86,10 +86,8 @@ if ($usehtmleditor = can_use_richtext_editor()) { $defaultformat = FORMAT_HTML; - $onsubmit = "onsubmit=\"copyrichtext(theform.message);\""; } else { $defaultformat = FORMAT_MOODLE; - $onsubmit = ""; } @@ -341,7 +339,7 @@ } - echo "
"; + echo "
"; if (!empty($parent)) { forum_print_post($parent, $course->id, $ownpost=false, $reply=false, $link=false); echo "

".get_string("yourreply", "forum").":

"; @@ -351,12 +349,16 @@ if (!empty($post->error)) { notify($post->error); } - echo "
"; + echo "
"; print_simple_box_start("center", "", "$THEME->cellheading"); require("post.html"); print_simple_box_end(); + if ($usehtmleditor) { + use_html_editor(); + } + print_footer($course); -- 2.39.5