Issue with WYSIWYG within a tab bloc
Support › MB Builder › Issue with WYSIWYG within a tab bloc
- This topic has 7 replies, 2 voices, and was last updated 3 years, 10 months ago by
AXEL PARATRE.
-
AuthorPosts
-
May 18, 2021 at 8:50 PM #28271
AXEL PARATRE
ParticipantHi,
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
AdrienDo you know from where we could have an issue ?
May 19, 2021 at 10:43 AM #28284Long Nguyen
ModeratorHi 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.
May 19, 2021 at 7:29 PM #28290AXEL PARATRE
ParticipantHi 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; }
May 19, 2021 at 10:06 PM #28302Long Nguyen
ModeratorHi,
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
May 19, 2021 at 10:25 PM #28304AXEL PARATRE
ParticipantThanks 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.
May 20, 2021 at 8:07 AM #28313Long Nguyen
ModeratorHi,
Thank you for your additional information.
I've escalated this issue to the development team to fix it in future updates.
May 27, 2021 at 3:45 PM #28461AXEL PARATRE
ParticipantHi,
Thanks for your answer.
Do you know when the fix will be released ?Regards
AdrienJune 22, 2021 at 10:27 PM #29067AXEL PARATRE
ParticipantHi,
I still have the issue despite the upgrades of AIO.
Do you know approximatively when the fix will be posted.Regards
Adrien -
AuthorPosts
- You must be logged in to reply to this topic.