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

2 months ago · Last reply by xella 18 days ago

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.

Need fast email support? Get SiteOrigin Premium

Replies

4
  1. Andrew Misplon Staff 1 month, 26 days ago

    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. xella 1 month, 26 days ago

    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. Andrew Misplon Staff 1 month, 26 days ago

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

  4. xella 18 days, 15 hours ago

    Hello ! For the information, it’s still not working on the latest update 1.70.4, for this specific use case of calling a custom widget in a repeater field in another custom widget.

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

Have a different question or issue?

Start New Thread