Issue with WYSIWYG within a tab bloc

Support MB Builder Issue with WYSIWYG within a tab bloc

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #28271
    AXEL PARATREAXEL PARATRE
    Participant

    Hi,

    I have a little issue with WYSIWYG within tabs layout

    I set 2 tabs (1 and 2)
    I set 1 WYSIWYG editor in the 1st one and 2 WYSIWYG editor in the second with no editor option.

    I can apply setting for the 1st one but options working for the 2nd tab.

    1st tab
    2nd tab

    Thanks for you help
    Adrien

    Do you know from where we could have an issue ?

    #28284
    Long NguyenLong Nguyen
    Moderator

    Hi Adrien,

    Thank you for your feedback.

    Can you please share the code that creates the tabs and field WYSIWYG? I will check it on my end.

    #28290
    AXEL PARATREAXEL PARATRE
    Participant

    Hi Longh,

    We did it with the custom field editor (metabox AIO)

    I think i'm in wrong forum - my issue should be in the Metabox Builder forum sorry.

    <?php
    add_filter( 'rwmb_meta_boxes', 'your_prefix_function_name' );
    
    function your_prefix_function_name( $meta_boxes ) {
        $prefix = '';
    
        $meta_boxes[] = [
            'title'  => __( 'Test', 'your-text-domain' ),
            'id'     => 'test',
            'tabs'   => [
                'tab_lyqm3d49c4i' => [
                    'label' => 'Tab',
                    'icon'  => '',
                ],
                'tab_er9wju7n55b' => [
                    'label' => 'Tab (Copy)',
                    'icon'  => '',
                ],
            ],
            'fields' => [
                [
                    'name' => __( 'Wysiwyg', 'your-text-domain' ),
                    'id'   => $prefix . 'wysiwyg_dbx2z2vqr55',
                    'type' => 'wysiwyg',
                    'tab'  => 'tab_lyqm3d49c4i',
                ],
                [
                    'name'    => __( 'Wysiwyg (Copy)', 'your-text-domain' ),
                    'id'      => $prefix . 'wysiwyg_n7brzfaq6fr',
                    'type'    => 'wysiwyg',
                    'columns' => 6,
                    'tab'     => 'tab_er9wju7n55b',
                ],
                [
                    'name'    => __( 'Wysiwyg (Copy) (Copy)', 'your-text-domain' ),
                    'id'      => $prefix . 'wysiwyg_zpyvkx3ygag',
                    'type'    => 'wysiwyg',
                    'columns' => 6,
                    'tab'     => 'tab_er9wju7n55b',
                ],
            ],
        ];
    
        return $meta_boxes;
    }
    #28302
    Long NguyenLong Nguyen
    Moderator

    Hi,

    So if I change the editor options in the first WYSIWYG, it does not apply to the second and third.

    'fields' => [
        [
            'name' => __( 'Wysiwyg', 'your-text-domain' ),
            'id'   => $prefix . 'wysiwyg_dbx2z2vqr55',
            'type' => 'wysiwyg',
            'tab'  => 'tab_lyqm3d49c4i',
            'options' => [
                'media_buttons' => false
            ]
        ],
        [
            'name'    => __( 'Wysiwyg (Copy)', 'your-text-domain' ),
            'id'      => $prefix . 'wysiwyg_n7brzfaq6fr',
            'type'    => 'wysiwyg',
            'columns' => 6,
            'tab'     => 'tab_er9wju7n55b',
        ],
        [
            'name'    => __( 'Wysiwyg (Copy) (Copy)', 'your-text-domain' ),
            'id'      => $prefix . 'wysiwyg_zpyvkx3ygag',
            'type'    => 'wysiwyg',
            'columns' => 6,
            'tab'     => 'tab_er9wju7n55b',
        ],
    ],

    didn't see the issue here, screen record https://share.getcloudapp.com/Jru4KzZb

    #28304
    AXEL PARATREAXEL PARATRE
    Participant

    Thanks for you answer.

    This option (media button) works, but textarea_rows doen't.

    Actually, in your exemple, you can notice that the 1st WYSIWYG (1st tab) has the default height and those in the 2nd tab have a really small height (exactly 100px set on the iframe with css style inlane --> screenshot bellow). However all WYSIWYG have no height option set.

    To resume the textarea_rows isn't applied on the the other tabs. Only the 1st works.

    #28313
    Long NguyenLong Nguyen
    Moderator

    Hi,

    Thank you for your additional information.

    I've escalated this issue to the development team to fix it in future updates.

    #28461
    AXEL PARATREAXEL PARATRE
    Participant

    Hi,
    Thanks for your answer.
    Do you know when the fix will be released ?

    Regards
    Adrien

    #29067
    AXEL PARATREAXEL PARATRE
    Participant

    Hi,

    I still have the issue despite the upgrades of AIO.
    Do you know approximatively when the fix will be posted.

    Regards
    Adrien

Viewing 8 posts - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.