diff --git a/course/edit.php b/course/edit.php
index 5565402eea0..cdae65cf475 100644
--- a/course/edit.php
+++ b/course/edit.php
@@ -184,7 +184,7 @@
print_footer($course);
if ($usehtmleditor) {
- use_html_editor();
+ use_html_editor("summary");
}
exit;
diff --git a/course/editsection.php b/course/editsection.php
index 274b3e15a34..16c5c744df9 100644
--- a/course/editsection.php
+++ b/course/editsection.php
@@ -58,7 +58,7 @@
print_simple_box_end();
if ($usehtmleditor) {
- use_html_editor();
+ use_html_editor("summary");
}
print_footer($course);
diff --git a/course/group.php b/course/group.php
index 0debfe12de5..65c9141c708 100644
--- a/course/group.php
+++ b/course/group.php
@@ -95,7 +95,7 @@
include('group-edit.html');
if ($usehtmleditor) {
- use_html_editor();
+ use_html_editor("description");
}
print_footer();
diff --git a/course/mod.php b/course/mod.php
index 67bcbd129f6..124078571bd 100644
--- a/course/mod.php
+++ b/course/mod.php
@@ -527,6 +527,12 @@
if (file_exists($modform)) {
+ if ($usehtmleditor = can_use_html_editor()) {
+ $defaultformat = FORMAT_HTML;
+ } else {
+ $defaultformat = FORMAT_MOODLE;
+ }
+
$icon = "modpixpath/$module->name/icon.gif\"> ";
print_heading_with_help($pageheading, "mods", $module->name, $icon);
@@ -534,6 +540,10 @@
include_once($modform);
print_simple_box_end();
+ if ($usehtmleditor and empty($nohtmleditorneeded)) {
+ use_html_editor();
+ }
+
} else {
notice("This module cannot be added to this course yet! (No file found at: $modform)", "$CFG->wwwroot/course/view.php?id=$course->id");
}
diff --git a/lib/weblib.php b/lib/weblib.php
index 88b8fab9394..4144d00527c 100644
--- a/lib/weblib.php
+++ b/lib/weblib.php
@@ -1649,11 +1649,11 @@ function use_html_editor($name="") {
echo "";
+ echo "\n";
}
diff --git a/mod/assignment/mod.html b/mod/assignment/mod.html
index b5ab9c85e32..c4c9d0e7faa 100644
--- a/mod/assignment/mod.html
+++ b/mod/assignment/mod.html
@@ -1,9 +1,4 @@
name)) {
$form->name = "";
}
@@ -30,15 +25,15 @@
}
?>
-