Support Forum
Support › Meta Box Builder › Issue with WYSIWYG within a tab bloc
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.
Thanks for you help
Adrien
Do you know from where we could have an issue ?
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.
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;
}
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
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.
Hi,
Thank you for your additional information.
I've escalated this issue to the development team to fix it in future updates.
Hi,
Thanks for your answer.
Do you know when the fix will be released ?
Regards
Adrien
Hi,
I still have the issue despite the upgrades of AIO.
Do you know approximatively when the fix will be posted.
Regards
Adrien