From: moodler Date: Tue, 11 Mar 2003 05:43:39 +0000 (+0000) Subject: You can now use Richtext editor to edit section texts, plus the page is a X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=1e5a2bf5846fdea4e363afeacdaa779fea2cd9c2;p=moodle.git You can now use Richtext editor to edit section texts, plus the page is a bit more consistent now --- diff --git a/course/editsection.html b/course/editsection.html index 522d63e58a..fdba5476a3 100644 --- a/course/editsection.html +++ b/course/editsection.html @@ -1,7 +1,24 @@
-
+ action="editsection.php"> + + + + + +

section") ?>

- +
+  + + + + + + + + +
+summary); ?>

"> @@ -9,3 +26,8 @@

+ diff --git a/course/editsection.php b/course/editsection.php index 2ddca3cffd..280b2e0641 100644 --- a/course/editsection.php +++ b/course/editsection.php @@ -43,10 +43,18 @@ $form = $section; } + if ($usehtmleditor = can_use_richtext_editor()) { + $onsubmit = "onsubmit=\"copyrichtext(theform.summary);\""; + } else { + $onsubmit = ""; + } + $sectionname = get_string("name$course->format"); $stredit = get_string("edit", "", " $sectionname $section->section"); - print_header($stredit, $stredit, "", "form.summary"); + print_header("$course->shortname: $stredit", "$course->fullname", + "wwwroot/course/view.php?id=$course->id\">$course->shortname + -> $stredit", "form.summary"); include("editsection.html");