From: Steve Sutton Date: Wed, 29 Mar 2017 12:16:12 +0000 (-0400) Subject: Setup the textarea custom fields as wp editor X-Git-Tag: v1.0.0^2~61 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=948e0c5cc1b66e2adcccc95810f32e10e00397a6;p=WP-Plugins%2Fglm-member-db-fields.git Setup the textarea custom fields as wp editor use wp_editor function like the one used for the description for the members. --- diff --git a/views/admin/memberinfo/fields.html b/views/admin/memberinfo/fields.html index db2e959..d491640 100644 --- a/views/admin/memberinfo/fields.html +++ b/views/admin/memberinfo/fields.html @@ -6,7 +6,16 @@ {if $field.field_type.name == 'text'} {elseif $field.field_type.name == 'textarea'} - + {php} + wp_editor('{$customFieldsData[$field.id]|escape:quotes}', 'custom-field-{$field.id}', array( + 'media_buttons' => false, + // 'quicktags' => false, + // 'wpautop' => false, NOTE: Dont's use. Problem when numerous spaces before text. + 'textarea_name' => '{$prefix}[{$field.id}]', + 'editor_height' => 200, // Height in px, overrides editor_rows + // 'textarea_rows' => 8 + )); + {/php} {elseif $field.field_type.name == 'checkbox'}