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

2 months ago · Last reply by Andrew Misplon 13 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

6
  1. Andrew Misplon Staff 2 months, 18 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 2 months, 18 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 2 months, 18 days ago

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

  4. xella 1 month, 10 days 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.

  5. xella 13 days, 16 hours ago

    Hello ! For information, it’s now fixed with the latest versions of WordPress & Site Origin ! Thank you !

  6. Andrew Misplon Staff 13 days, 15 hours ago

    Hi, thanks for your feedback, glad to hear the fix worked.

    Cheers for now.

    Andrew

Replies on this thread are closed.

Please create a new thread if you have a question, or purchase a SiteOrigin Premium license if you need one-on-one email support.

Have a different question or issue?

Start New Thread