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.

  1. 11 days, 18 hours ago Andrew Misplon
    Hi, I Work Here

    Hi Xella

    We might have a solution in the next update of the Widgets Bundle. There are a few more pull requests that need to be reviewed and included before it’s released. If you could perhaps let us know the status of the issue after the next release in a week or two, that would be great.

    Thanks

    Andrew

  2. 11 days, 14 hours ago xella

    Hello Andrew,

    Thank you for your support ! I’ll wait for the next release and I’ll keep you informed If it fix my issue.
    Thank you for your wonderfull work !

  3. 11 days, 13 hours ago Andrew Misplon
    Hi, I Work Here

    Thanks for your understanding and support! Chat soon, cheers.

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

Get The Most Out of SiteOrigin with SiteOrigin Premium

Find Out More