</td>
</tr>
<tr valign=top>
- <td align=right><P><B><? print_string("message", "forum"); ?>:</B><BR><BR><? helpbutton("text", get_string("helptext")) ?></P></TD>
+ <td align=right><P><B><? print_string("message", "forum"); ?>:</B>
+ <? if (!$usehtmleditor) { ?>
+ <BR><BR><? helpbutton("text", get_string("helptext")) ?></P>
+ <? } ?>
+ </TD>
<td>
<? if ($usehtmleditor) { ?>
<object id="richedit" style="BACKGROUND-COLOR: buttonface" data="../../lib/rte/richedit.html"
die;
}
+ if ($usehtmleditor = can_use_richtext_editor()) {
+ $defaultformat = FORMAT_HTML;
+ $onsubmit = "onsubmit=\"copyrichtext(theform.message);\"";
+ } else {
+ $defaultformat = FORMAT_MOODLE;
+ }
if (isset($forum)) { // User is starting a new discussion in a forum
$post->subject = "";
$post->user = $USER->id;
$post->message = "";
+ $post->format = $defaultformat;
forum_set_return();
$post->subject = $parent->subject;
$post->user = $USER->id;
$post->message = "";
+ $post->format = $defaultformat;
$strre = get_string("re", "forum");
if (!(substr($post->subject, 0, 3) == $strre)) {
$strforums = get_string("modulenameplural", "forum");
- if ($usehtmleditor = can_use_richtext_editor()) {
- $onsubmit = "onsubmit=\"copyrichtext(theform.message);\"";
- }
$navmiddle = "<A HREF=\"../forum/index.php?id=$course->id\">$strforums</A> -> <A HREF=\"view.php?f=$forum->id\">$forum->name</A>";