Support Forum
Support › Meta Box Group › WYSIWYG Editor is still broken when using groups
I'm sorry to post a new thread, but I have the same problem as the clients before me: the wysiwyg field is broken when using groups. All my fields have unique ID's, I have tested this on a clean WP install with no other plugins than the akismet and the metabox plugins. Can you please help?
Best regards,
Gabriela (from my employer's account)
Hi Gabriela,
Can you please post the code you register meta boxes?
Yes, of course, here it is:
add_filter( 'rwmb_meta_boxes', 'meta_box_group_demo_register' );
function meta_box_group_demo_register( $meta_boxes )
{
$meta_boxes[] = array(
'id' => 'persondetails',
'title' => __( 'Person\'s Details', 'your-prefix' ),
'pages' => array( 'our_attorneys' ), //post type name
'fields' => array(
//group
array(
'id' => 'lawyers_prof_act',
'name' => __( 'Professional Activity', 'your-prefix' ),
'type' => 'group', // Group type
'clone' => true, // Can be cloned?
// List of child fields
'fields' => array(
array(
'name' => __( 'Activity Title', 'your-prefix' ),
'id' => 'npm_lw_act_title',
'type' => 'text',
'columns' => 6,
),
array(
'name' => __( 'Important Resources', 'your-prefix' ),
'id' => "npm_lw_act_content",
'type' => 'wysiwyg',
'raw' => false,
'options' => array(
'textarea_rows' => 4,
'teeny' => true,
'media_buttons' => false,
),
),
array(
'name' => __( 'Shortcode - [attorney-blog-posts category= author= ]', 'your-prefix' ),
'id' => 'npm_att_shortcode',
'type' => 'text',
'columns' => 6,
),
),
),
),
);
I'm sorry, I should have specified: the wysiwyg editor is broken when using groups WITH the "clone" set to "true" - I do believe it's a js thing but I just can't find it!
Best regards,
Gabriela
Oh, I see. The WYSIWYG field can't be cloned (both with and without using the group extension). This is a known issue and we haven't had a solution for it yet.