Home>Support>So Widget Update to 1.70.* break Tinymce in repeater fields

So Widget Update to 1.70.* break Tinymce in repeater fields

Hello,

When I update so-widgets-bundle to version 1.70.0 it’s breaking the initialization of “tinymce” field in this case :

In one of my custom widget, I have a repeater where I use a widget field to use same field than another custom widget, just like this :

array(
‘columns’ => array(
‘type’ => ‘repeater’,
‘label’ => __( ‘Ajouter une colonne’ , ‘wp_theme’ ),
‘item_name’ => __( ‘Editer une colonne’, ‘wp_theme’ ),
‘item_label’ => array(
‘selector’ => “[id*=’title’]”,
‘update_event’ => ‘change’,
‘value_method’ => ‘val’
),
‘max_items’ => 2,
‘fields’ => array(
‘choose_blocks’ => array(
‘type’ => ‘select’,
‘label’ => __( ‘Quels blocs souhaitez-vous utiliser dans cet onglet ?’, ‘wp_theme’ ),
‘default’ => ”,
‘options’ => array(
‘text’ => __( ‘Bloc texte’, ‘wp_theme’ ),
‘media’ => __( ‘Bloc média’, ‘wp_theme’ )
),
‘state_emitter’ => array(
‘callback’ => ‘select’,
‘args’ => array( ‘field_choose_blocks_{$repeater}’ )
),
),
‘bloc_text’ => array(
‘type’ => ‘widget’,
‘label’ => __( ‘Editer le bloc texte’, ‘wp_theme’ ),
‘class’ => ‘Block_Text’,
‘hide’ => false,
‘state_handler’ => array(
‘field_choose_blocks_{$repeater}[text]’ => array( ‘show’ ),
‘_else[field_choose_blocks_{$repeater}]’ => array( ‘hide’ )
),
)

)
)
);

In my “Block_Text” widget, I have a “tinymce” field type, and I can’t load the tinymce on this case since updating >= 1.70.0.

Can you check and find a solution to fix this issue ?
Thank you !

This is our free support forum. Replies can take several days. If you need fast email support, please purchase a SiteOrigin Premium license.

Please log in to post on our forums. Signing up is free.

Get The Most Out of SiteOrigin with SiteOrigin Premium

Find Out More