Opened 9 years ago
Closed 9 years ago
#6722 closed defect (bug) (fixed)
xProfile Admin: Rich textarea display
Reported by: | imath | Owned by: | boonebgorges |
---|---|---|---|
Milestone: | 2.4 | Priority: | normal |
Severity: | normal | Version: | |
Component: | Extended Profile | Keywords: | has-patch |
Cc: |
Attachments (2)
Change History (7)
#3
in reply to:
↑ 2
@
9 years ago
- Keywords has-patch added; needs-patch removed
Replying to boonebgorges:
A
$context
parameter seems the most flexible to me. It'll make it easier for plugins to modify these fields without having to hook in two separate places.
Thanks boonebgorges, I agree what about 02.patch ?
#4
@
9 years ago
- Owner set to boonebgorges
- Status changed from new to assigned
Thanks, imath. I think this is pretty good. We should probably include a 'textarea_rows' value for the other instance of the filter as well, so that filtering functions will have predictable data to work with. (Also, the default of 20 is way too high when you're editing a user's profile in the Dashboard.)
Thanks, imath.
6722.patch will not work. We use the same
bp_xprofile_field_type_textarea_editor_args
filter to generate theadmin_field_html
as well as theedit_field_html
. Either (a) we need to split up the filter, either with a new filter name or with a$context
argument, or (b) we fix this using a filter callback that does anis_admin()
check or something like that.A
$context
parameter seems the most flexible to me. It'll make it easier for plugins to modify these fields without having to hook in two separate places.