From 948e0c5cc1b66e2adcccc95810f32e10e00397a6 Mon Sep 17 00:00:00 2001 From: Steve Sutton Date: Wed, 29 Mar 2017 08:16:12 -0400 Subject: [PATCH] Setup the textarea custom fields as wp editor use wp_editor function like the one used for the description for the members. --- views/admin/memberinfo/fields.html | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) 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'} -- 2.17.1