From d47fd1ee7ccdf237159c16658d44c97867c3d48b Mon Sep 17 00:00:00 2001 From: moodler Date: Sun, 10 Aug 2003 09:26:11 +0000 Subject: [PATCH] Added richtext editor to site front page --- admin/site.html | 26 ++++++++++++++++++++------ admin/site.php | 7 +++++++ 2 files changed, 27 insertions(+), 6 deletions(-) diff --git a/admin/site.html b/admin/site.html index 2c4dadcc30..243fade4df 100644 --- a/admin/site.html +++ b/admin/site.html @@ -1,4 +1,4 @@ -
+> @@ -15,13 +15,21 @@ - + @@ -90,3 +98,9 @@ + + diff --git a/admin/site.php b/admin/site.php index 665eff378a..f6c74bbdc4 100644 --- a/admin/site.php +++ b/admin/site.php @@ -98,6 +98,13 @@ print_heading($strsitesettings); } + $defaultformat = FORMAT_HTML; + if ($usehtmleditor = can_use_richtext_editor()) { + $onsubmit = "onsubmit=\"copyrichtext(form.summary);\""; + } else { + $onsubmit = ""; + } + print_simple_box_start("center", "", "$THEME->cellheading"); include("site.html"); print_simple_box_end(); -- 2.39.5

:

:


-
-
+ "; + if ($usehtmleditor) { + helpbutton("richtext", get_string("helprichtext"), "moodle", true, true); + } else { + helpbutton("html", get_string("helphtml"), "moodle", true, true); + echo "
"; + emoticonhelpbutton("theform", "text"); + } + echo "
"; + ?>
- - summary); ?>

: