Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Added HTMLArea editor to the Description box in the Edit Profile area
  • Loading branch information
patrickslee committed Nov 18, 2005
1 parent daa08c4 commit 60f515a
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
6 changes: 6 additions & 0 deletions theme/standard/styles_layout.css
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion user/edit.html
Expand Up @@ -240,7 +240,7 @@
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>
Expand Down
6 changes: 6 additions & 0 deletions user/edit.php
Expand Up @@ -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");
Expand Down Expand Up @@ -347,6 +349,10 @@

print_simple_box_end();

if ($usehtmleditor) {
use_html_editor("description");
}

if (!isset($USER->newadminuser)) {
print_footer($course);
}
Expand Down

0 comments on commit 60f515a

Please sign in to comment.