diff --git a/admin/admin.php b/admin/admin.php index dd2855d9e757d..cb0f3b554de3f 100644 --- a/admin/admin.php +++ b/admin/admin.php @@ -102,7 +102,7 @@ if ($primaryadmin->id == $admin->id){ print_spacer(10, 9, false); } else { - echo "id\" + echo "id\" title=\"$strremoveadmin\">"; } @@ -136,14 +136,14 @@ } foreach ($users as $user) { - echo "
id\"".
+ echo " id\"".
"title=\"$straddadmin\"> ".fullname($user).", $user->email";
}
}
if ($search or $usercount > MAX_USERS_PER_PAGE) {
- echo " ".fullname($creator, true).", $creator->email ";
- echo "id\"
+ echo "id\"
title=\"$strremovecreator\">";
echo " id\"".
+ echo " id\"".
"title=\"$straddcreator\"> $fullname, $user->email";
}
}
if ($search or $usercount > MAX_USERS_PER_PAGE) {
- echo " '.user_login_string($site).'
'; @@ -281,7 +283,7 @@ include('event_edit.html'); print_side_block_end(); if ($usehtmleditor) { - use_html_editor(); + use_html_editor("description"); } break; @@ -425,7 +427,7 @@ else { include('event_new.html'); if ($usehtmleditor) { - use_html_editor(); + use_html_editor("description"); } } print_side_block_end(); @@ -437,7 +439,6 @@ echo ' | '; $defaultcourses = calendar_get_default_courses(); - echo calendar_overlib_html(); calendar_set_filters($courses, $groups, $users, $defaultcourses, $defaultcourses); print_side_block_start(get_string('monthlyview', 'calendar')); diff --git a/calendar/event_edit.html b/calendar/event_edit.html index 8bd4464ccae2f..4350060aecb5a 100644 --- a/calendar/event_edit.html +++ b/calendar/event_edit.html @@ -19,7 +19,7 @@ | description); + print_textarea($usehtmleditor, 20, 65, 630, 300, "description", $form->description); if (isset($err['description'])) formerr($err['description']); ?> | diff --git a/calendar/event_new.html b/calendar/event_new.html index 2f18dc06544b4..ec22db8cebe07 100644 --- a/calendar/event_new.html +++ b/calendar/event_new.html @@ -19,7 +19,7 @@description); + print_textarea($usehtmleditor, 20, 65, 630, 300, "description", $form->description); if (isset($err['description'])) formerr($err['description']); ?> | diff --git a/course/edit.php b/course/edit.php index d4a1424db798c..b33445ad3c3ba 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 274b3e15a346e..16c5c744df942 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 0debfe12de5bf..65c9141c7089b 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 f161f0517f0e5..94d06c725754e 100644 --- a/course/mod.php +++ b/course/mod.php @@ -622,6 +622,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); @@ -629,6 +635,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 27849216dc465..0effc063f9638 100644 --- a/lib/weblib.php +++ b/lib/weblib.php @@ -1654,11 +1654,11 @@ function use_html_editor($name="") { echo ""; + echo "\n"; } diff --git a/mod/assignment/mod.html b/mod/assignment/mod.html index b5ab9c85e32d0..c4c9d0e7faab1 100644 --- a/mod/assignment/mod.html +++ b/mod/assignment/mod.html @@ -1,9 +1,4 @@ name)) { $form->name = ""; } @@ -30,15 +25,15 @@ } ?> -