From 1c338cdbc852a77d0019ac7ebf97b5eb91027e71 Mon Sep 17 00:00:00 2001 From: moodler Date: Sun, 9 Nov 2003 03:16:28 +0000 Subject: [PATCH] Some cosmetic changes to the code to use the new html editor functions. No change in functionality at all. I was in the area trying to fix a bug on this page that only shows up in Internet Explorer (something to do with editor) --- mod/glossary/edit.html | 4 ++-- mod/glossary/edit.php | 4 +--- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/mod/glossary/edit.html b/mod/glossary/edit.html index aafc2679cf..883e50c723 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 4e9bdf03e1..1e5189d35a 100644 --- a/mod/glossary/edit.php +++ b/mod/glossary/edit.php @@ -195,12 +195,10 @@ $strglossary = get_string("modulename", "glossary"); $strglossaries = get_string("modulenameplural", "glossary"); $stredit = get_string("edit"); -if ($usehtmleditor = can_use_richtext_editor()) { +if ($usehtmleditor = can_use_html_editor()) { $defaultformat = FORMAT_HTML; - $onsubmit = "onsubmit=\"copyrichtext(form.text);\""; } else { $defaultformat = FORMAT_MOODLE; - $onsubmit = ""; } print_header(strip_tags("$course->shortname: $glossary->name"), "$course->fullname", -- 2.39.5