From f15b491efb95f2b2928bf65efcf0bc869f844662 Mon Sep 17 00:00:00 2001 From: stronk7 Date: Sat, 28 Aug 2004 19:48:56 +0000 Subject: [PATCH] HTML editor (format popup) display wrong in glossary comments Bug 1826 (http://moodle.org/bugs/bug.php?op=show&bugid=1826) Merged from MOODLE_14_STABLE --- mod/glossary/comment.html | 52 +++++++++++++++++++++++---------------- 1 file changed, 31 insertions(+), 21 deletions(-) diff --git a/mod/glossary/comment.html b/mod/glossary/comment.html index 61cae6900a..6025e9dc7c 100644 --- a/mod/glossary/comment.html +++ b/mod/glossary/comment.html @@ -1,36 +1,46 @@ -
+ - + + + + + + + -- 2.39.5

:

- +

+ : +

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

:

text); - - echo "

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

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