[buddypress-trac] [BuddyPress Trac] #5625: Use wp_editor for "multi line text area" xprofile field in frontend

buddypress-trac noreply at wordpress.org
Mon Oct 12 17:50:46 UTC 2015


#5625: Use wp_editor for "multi line text area" xprofile field in frontend
--------------------------------------------+---------------------------
 Reporter:  sooskriszta                     |       Owner:  boonebgorges
     Type:  enhancement                     |      Status:  closed
 Priority:  normal                          |   Milestone:  2.4
Component:  Component - XProfile            |     Version:
 Severity:  normal                          |  Resolution:  fixed
 Keywords:  has-patch needs-testing commit  |
--------------------------------------------+---------------------------
Changes (by boonebgorges):

 * status:  assigned => closed
 * resolution:   => fixed


Comment:

 In [changeset:"10254"]:
 {{{
 #!CommitTicketReference repository="" revision="10254"
 Enable richtext editing for xProfile textarea fields.

 Profile fields of the 'textarea' type are now edited using `wp_editor()`.
 Output escaping has been modified to whitelist all tags permitted by the
 "teeny" version of the `wp_editor()` interface.

 Richtext is enabled for all and only 'textarea' fields:
 * To enable richtext editing for a custom field type, set the
 `supports_richtext` property of your `BP_XProfile_Field_Type` class to
 `true`. In these cases, you'll need to  provide your own editing markup as
 well; see the `edit_field_html()` and `admin_field_html()` methods of
 `BP_XProfile_Field_Type_Textarea` for inspiration.
 * To disable richtext editing for specific 'textarea' fields, filter
 `bp_xprofile_is_richtext_enabled_for_field`.

 Props needle, boonebgorges.
 Fixes #5625.
 }}}

--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/5625#comment:32>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac


More information about the buddypress-trac mailing list