From: moodler Date: Sun, 10 Aug 2003 09:26:11 +0000 (+0000) Subject: Added richtext editor to site front page X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=d47fd1ee7ccdf237159c16658d44c97867c3d48b;p=moodle.git Added richtext editor to site front page --- 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();

:

:


-
-
+ "; + 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); ?>

: