mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 08:56:36 +02:00
Update to use new editor stuff
This commit is contained in:
parent
126f0da58d
commit
4b00b4b34a
2 changed files with 8 additions and 13 deletions
|
@ -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">
|
||||
|
@ -112,10 +112,3 @@
|
|||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
|
||||
<?php
|
||||
if ($usehtmleditor) {
|
||||
print_richedit_javascript("theform", "message", "no");
|
||||
}
|
||||
?>
|
||||
|
||||
|
|
|
@ -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 "<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>";
|
||||
|
@ -351,12 +349,16 @@
|
|||
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);
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue