diff --git a/course/editsection.html b/course/editsection.html
index 5a0b808507a..d8e07672fb6 100644
--- a/course/editsection.html
+++ b/course/editsection.html
@@ -16,7 +16,11 @@
- summary); ?>
+ summary, 0, false, 'summary');
+ print($htmlEditorObject->activateEditor('summary', 'summary'));
+ ?>
+
|
diff --git a/course/editsection.php b/course/editsection.php
index 96234511ade..9e0ccdee89c 100644
--- a/course/editsection.php
+++ b/course/editsection.php
@@ -61,10 +61,6 @@
print_simple_box_start('center');
include('editsection.html');
print_simple_box_end();
-
- if ($usehtmleditor) {
- use_html_editor("summary");
- }
print_footer($course);
?>
diff --git a/lib/weblib.php b/lib/weblib.php
index 616878b3562..8ed4d451cee 100644
--- a/lib/weblib.php
+++ b/lib/weblib.php
@@ -4825,20 +4825,21 @@ function print_textarea($usehtmleditor, $rows, $cols, $width, $height, $name, $v
}
if ($usehtmleditor) {
- if (!empty($courseid) and has_capability('moodle/course:managefiles', get_context_instance(CONTEXT_COURSE, $courseid))) {
- $httpsrequired = empty($HTTPSPAGEREQUIRED) ? '' : '&httpsrequired=1';
- // needed for course file area browsing in image insert plugin
- $str .= ($scriptcount < 1) ? ''."\n" : '';
- } else {
- $httpsrequired = empty($HTTPSPAGEREQUIRED) ? '' : '?httpsrequired=1';
- $str .= ($scriptcount < 1) ? ''."\n" : '';
- }
- $str .= ($scriptcount < 1) ? ''."\n" : '';
- $scriptcount++;
+// if (!empty($courseid) and has_capability('moodle/course:managefiles', get_context_instance(CONTEXT_COURSE, $courseid))) {
+// $httpsrequired = empty($HTTPSPAGEREQUIRED) ? '' : '&httpsrequired=1';
+// // needed for course file area browsing in image insert plugin
+// $str .= ($scriptcount < 1) ? ''."\n" : '';
+// } else {
+// $httpsrequired = empty($HTTPSPAGEREQUIRED) ? '' : '?httpsrequired=1';
+// $str .= ($scriptcount < 1) ? ''."\n" : '';
+
+// }
+// $str .= ($scriptcount < 1) ? ''."\n" : '';
+// $scriptcount++;
if ($height) { // Usually with legacy calls
if ($rows < $minrows) {