WYSIWYG Editor is still broken when using groups

Support MB Group WYSIWYG Editor is still broken when using groups

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1511
    jpomrankyjpomranky
    Participant

    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)

    #1515
    Anh TranAnh Tran
    Keymaster

    Hi Gabriela,

    Can you please post the code you register meta boxes?

    #1518
    jpomrankyjpomranky
    Participant

    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

    #1519
    Anh TranAnh Tran
    Keymaster

    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.

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘WYSIWYG Editor is still broken when using groups’ is closed to new replies.