mirror of
https://github.com/moodle/moodle.git
synced 2025-08-06 09:26:35 +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
|
@ -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