From: moodler Date: Tue, 11 Nov 2003 06:27:49 +0000 (+0000) Subject: Undoing my changes to the editing functions, because it removed backward X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=003891b463181dfeff5e745727a157181af9a358;p=moodle.git Undoing my changes to the editing functions, because it removed backward compatibility with 1.1.1 ... this way it works on both. --- diff --git a/mod/glossary/edit.html b/mod/glossary/edit.html index 883e50c723..aafc2679cf 100644 --- a/mod/glossary/edit.html +++ b/mod/glossary/edit.html @@ -2,7 +2,7 @@ global $CFG; ?>
-
+ action="edit.php" enctype="multipart/form-data"> diff --git a/mod/glossary/edit.php b/mod/glossary/edit.php index 63db0a7905..b59d71e845 100644 --- a/mod/glossary/edit.php +++ b/mod/glossary/edit.php @@ -195,10 +195,12 @@ $strglossary = get_string("modulename", "glossary"); $strglossaries = get_string("modulenameplural", "glossary"); $stredit = get_string("edit"); -if ($usehtmleditor = can_use_html_editor()) { +if ($usehtmleditor = can_use_richtext_editor()) { $defaultformat = FORMAT_HTML; + $onsubmit = "onsubmit=\"copyrichtext(form.text);\""; } else { $defaultformat = FORMAT_MOODLE; + $onsubmit = ""; } print_header(strip_tags("$course->shortname: $glossary->name"), "$course->fullname",