]> git.mjollnir.org Git - moodle.git/commitdiff
Update to use new editor stuff
authormoodler <moodler>
Mon, 3 Nov 2003 16:49:37 +0000 (16:49 +0000)
committermoodler <moodler>
Mon, 3 Nov 2003 16:49:37 +0000 (16:49 +0000)
mod/forum/post.html
mod/forum/post.php

index 581752aab44e5e40ac48a18e5e50dfd71966b8f7..a709c584beb873985315c568d36657ba96e37e7a 100644 (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">
 <tr valign="top">
     <td align=right><p><b><?php print_string("subject", "forum"); ?>:</b></p></td>
@@ -11,7 +11,7 @@
      <?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");
-   }
-?>
-
index d376fa96388f950082bda770a3c1552b409c4111..6c296141dbada77ca764efc91de3b519c9422418 100644 (file)
 
     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);