From: stronk7 Date: Fri, 27 Aug 2004 00:07:46 +0000 (+0000) Subject: Solved some inconsistencies when using the HTML editor and the X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=d564a85c5745719794f0d58468436c9d2637ce40;p=moodle.git Solved some inconsistencies when using the HTML editor and the format menu!! Merged from MOODLE_14_STABLE --- diff --git a/mod/glossary/edit.html b/mod/glossary/edit.html index f3aa2812a4..90ebba9c5f 100644 --- a/mod/glossary/edit.html +++ b/mod/glossary/edit.html @@ -1,6 +1,5 @@ -
-
action="edit.php" enctype="multipart/form-data"> - + +
@@ -15,7 +14,7 @@ if (isset($errors)) {
-
+ + + + + + + - + + + +
@@ -111,38 +110,50 @@ if (isset($errors)) {

:

+ : +

+ definition); ?> +
-

:

- + "; if ($usehtmleditor) { helpbutton("richtext", get_string("helprichtext"), "moodle", true, true); } else { - emoticonhelpbutton("form", "description"); + emoticonhelpbutton("form", "text"); } ?> -
-
+
+
+

:

definition); - - echo "

"; - helpbutton("textformat", get_string("helpformatting")); - print_string("formattexttype"); - echo ": "; - if (!isset($newentry->format)) { - $newentry->format = $defaultformat; - } - choose_from_menu(format_text_menu(), "format", $newentry->format, ""); - echo "

"; - ?> + if ($usehtmleditor) { /// Trying this out for a while + print_string('formathtml'); + echo ''; + } else { + if (!isset($newentry->format)) { + $newentry->format = $defaultformat; + } + choose_from_menu(format_text_menu(), "format", $newentry->format, ""); + } + helpbutton("textformat", get_string("helpformatting")); + ?>

:
(

@@ -177,8 +188,4 @@ if (isset($errors)) {
- - - - diff --git a/mod/glossary/edit.php b/mod/glossary/edit.php index 4287ed300e..532d19d684 100644 --- a/mod/glossary/edit.php +++ b/mod/glossary/edit.php @@ -66,10 +66,8 @@ if ( $confirm ) { if ($usehtmleditor = can_use_richtext_editor()) { $defaultformat = FORMAT_HTML; - $onsubmit = "onsubmit=\"copyrichtext(form.text);\""; } else { $defaultformat = FORMAT_MOODLE; - $onsubmit = ""; } print_header_simple(strip_tags("$glossary->name"), "", @@ -240,10 +238,8 @@ $stredit = get_string("edit"); if ($usehtmleditor = can_use_richtext_editor()) { $defaultformat = FORMAT_HTML; - $onsubmit = "onsubmit=\"copyrichtext(form.text);\""; } else { $defaultformat = FORMAT_MOODLE; - $onsubmit = ""; } print_header_simple(strip_tags("$glossary->name"), "",