Update to use new editor stuff

This commit is contained in:
moodler 2003-11-03 16:49:37 +00:00
parent 126f0da58d
commit 4b00b4b34a
2 changed files with 8 additions and 13 deletions

View file

@ -1,4 +1,4 @@
<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"> <table border="0" cellpadding="5">
<tr valign="top"> <tr valign="top">
<td align=right><p><b><?php print_string("subject", "forum"); ?>:</b></p></td> <td align=right><p><b><?php print_string("subject", "forum"); ?>:</b></p></td>
@ -11,7 +11,7 @@
<?php print_string("message", "forum"); ?>: <?php print_string("message", "forum"); ?>:
</b></p></td> </b></p></td>
<td align=left rowspan=2> <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> </td>
</tr> </tr>
<tr valign="top"> <tr valign="top">
@ -112,10 +112,3 @@
</tr> </tr>
</table> </table>
</form> </form>
<?php
if ($usehtmleditor) {
print_richedit_javascript("theform", "message", "no");
}
?>

View file

@ -86,10 +86,8 @@
if ($usehtmleditor = can_use_richtext_editor()) { if ($usehtmleditor = can_use_richtext_editor()) {
$defaultformat = FORMAT_HTML; $defaultformat = FORMAT_HTML;
$onsubmit = "onsubmit=\"copyrichtext(theform.message);\"";
} else { } else {
$defaultformat = FORMAT_MOODLE; $defaultformat = FORMAT_MOODLE;
$onsubmit = "";
} }
@ -341,7 +339,7 @@
} }
echo "<CENTER>"; echo "<center>";
if (!empty($parent)) { if (!empty($parent)) {
forum_print_post($parent, $course->id, $ownpost=false, $reply=false, $link=false); forum_print_post($parent, $course->id, $ownpost=false, $reply=false, $link=false);
echo "<H2>".get_string("yourreply", "forum").":</H2>"; echo "<H2>".get_string("yourreply", "forum").":</H2>";
@ -351,12 +349,16 @@
if (!empty($post->error)) { if (!empty($post->error)) {
notify($post->error); notify($post->error);
} }
echo "</CENTER>"; echo "</center>";
print_simple_box_start("center", "", "$THEME->cellheading"); print_simple_box_start("center", "", "$THEME->cellheading");
require("post.html"); require("post.html");
print_simple_box_end(); print_simple_box_end();
if ($usehtmleditor) {
use_html_editor();
}
print_footer($course); print_footer($course);