-<form name="theform" method="post" action="post.php" <?php echo $onsubmit ?> enctype="multipart/form-data">
+<form name="theform" method="post" action="post.php" type="multipart/form-data">
<table border="0" cellpadding="5">
<tr valign="top">
<td align=right><p><b><?php print_string("subject", "forum"); ?>:</b></p></td>
<?php print_string("message", "forum"); ?>:
</b></p></td>
<td align=left rowspan=2>
- <?php print_textarea($usehtmleditor, 15, 50, 630, 400, "message", $post->message); ?>
+ <?php print_textarea($usehtmleditor, 25, 65, 630, 400, "message", $post->message); ?>
</td>
</tr>
<tr valign="top">
</tr>
</table>
</form>
-
-<?php
- if ($usehtmleditor) {
- print_richedit_javascript("theform", "message", "no");
- }
-?>
-
if ($usehtmleditor = can_use_richtext_editor()) {
$defaultformat = FORMAT_HTML;
- $onsubmit = "onsubmit=\"copyrichtext(theform.message);\"";
} else {
$defaultformat = FORMAT_MOODLE;
- $onsubmit = "";
}
}
- echo "<CENTER>";
+ echo "<center>";
if (!empty($parent)) {
forum_print_post($parent, $course->id, $ownpost=false, $reply=false, $link=false);
echo "<H2>".get_string("yourreply", "forum").":</H2>";
if (!empty($post->error)) {
notify($post->error);
}
- echo "</CENTER>";
+ echo "</center>";
print_simple_box_start("center", "", "$THEME->cellheading");
require("post.html");
print_simple_box_end();
+ if ($usehtmleditor) {
+ use_html_editor();
+ }
+
print_footer($course);