Permalink
Browse files

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

  • Loading branch information...
1 parent daa08c4 commit 60f515a257fc08964b858dbb7585c4b99ee05490 patrickslee committed Nov 18, 2005
Showing with 13 additions and 1 deletion.
  1. +6 −0 theme/standard/styles_layout.css
  2. +1 −1 user/edit.html
  3. +6 −0 user/edit.php
@@ -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;
View
@@ -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>
View
@@ -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);
}

0 comments on commit 60f515a

Please sign in to comment.