Added HTMLArea editor to the Description box in the Edit Profile area

This commit is contained in:
patrickslee
2005-11-18 01:45:20 +00:00
parent daa08c4e4c
commit 60f515a257
3 changed files with 13 additions and 1 deletions
+6
View File
@@ -192,6 +192,12 @@ table.formtable tbody th
padding: 5px;
}
table.formtable tbody .htmlarea td,
table.formtable tbody .htmlarea th
{
padding: 0px;
}
.paging {
text-align: center;
margin: 10px 0px 10px 0px;
+1 -1
View File
@@ -240,7 +240,7 @@ if (isadmin()) {
formerr($err["description"]);
echo "<br />";
}
print_textarea(false, 10, 50, 50, 10, 'description', "$user->description");
print_textarea($usehtmleditor, 10, 50, 50, 10, 'description', "$user->description");
helpbutton("text", get_string("helptext"));
?>
</td>
+6
View File
@@ -254,6 +254,8 @@
/// Otherwise fill and print the form.
$usehtmleditor = can_use_html_editor();
$streditmyprofile = get_string("editmyprofile");
$strparticipants = get_string("participants");
$strnewuser = get_string("newuser");
@@ -347,6 +349,10 @@
print_simple_box_end();
if ($usehtmleditor) {
use_html_editor("description");
}
if (!isset($USER->newadminuser)) {
print_footer($course);
}