Skip Navigation

[Resolved] The latest known issue

This support ticket is created 3 years, 9 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Karachi (GMT+05:00)

This topic contains 8 replies, has 3 voices.

Last updated by Waqar 3 years, 2 months ago.

Assisted by: Waqar.

Author
Posts
#2207063

Hi,

Hope everyone at OTGS is doing great!

I just wanted to see if there is any progress on resolving this issue?
https://toolset.com/errata/content-of-wysiwyg-field-lost-when-updating-posts/

Could you also please add a tracker so that we can get notified when there is a patch or beta ready?

Thank you very much!

- Izzi

#2207615

Hi Izzi,

Thank you for contacting us and I'd be happy to assist.

I can keep you updated on the progress through this ticket, but, first I'll need to clearly understand exactly what you're experiencing on your website.

Recently, two very similar issues have been highlighted around the WYSIWYG field:
https://toolset.com/errata/content-of-wysiwyg-field-lost-when-updating-posts/
https://toolset.com/errata/visual-tab-of-wysiwyg-fields-may-not-initialize-correctly-appear-not-to-save-data/

Can you please let me know which one seems more relevant?

regards,
Waqar

#2207971

Hey Waqar, hope all's well!

The issue is the second one:
https://toolset.com/errata/visual-tab-of-wysiwyg-fields-may-not-initialize-correctly-appear-not-to-save-data/

We had the first issue on a different site, but that was resolved by the latest stable version of Toolset Types.

Now we're seeing that WYSIWYG content changes are not saved.

Best,
Izzi

#2210507

Thank you for confirming this.

As mentioned in erratum, for this particular issue, we're mainly awaiting a fix from the WordPress side and as a workaround, suggest using the jQuery migrate helper plugin, meanwhile.

We're also collecting some information about the websites which are experiencing this issue and would it be possible for you to share a clone/snapshot of the affected website, along with the steps to see it?
( ref: https://toolset.com/faq/provide-supporters-copy-site/ )

Note: I've set your next reply as private.

#2217525

Hey Waqar,

Sorry about the late response as I was away.

Unfortunately I cannot share a clone of the site(s) since they are all client sites that we are not allowed to share unless absolutely necessary.

We will try the jQuery Migrate Helper workaround for now.

Thank you!

#2217549

Thanks for the update and I can understand.

You're welcome to keep using the workaround for now and I'll keep you updated on the progress.

#2222365

Hey Waqar,

This is the solution we ended up using for our clients instead of jQuery migrate since it is less likely to cause issues in other plugins.

Thought I'd share it in case it helps anyone else. Maybe you can add to the errata:

```
//toolset_fix.js
jQuery(document).ready(function() {
// Switch to the Text tab on Publish
jQuery('#publish, #save-post, .editor-post-publish-button__button, .editor-post-save-draft').click(function(e) {
jQuery('.switch-html').click();
});

// Switch back when page loads
jQuery(document).on('toolset_ajax_fields_loaded', function(e) {
jQuery('.switch-tmce').click();
});
});
```

```
//functions.php
/**
* Fix for TinyMCE / Toolset Types bug.
*
* @param int $hook Hook suffix for the current admin page.
*/
function fix_tinymce_toolset_types( $hook ) {
if ( 'post.php' !== $hook ) {
return;
}

wp_enqueue_script( 'fix_tinymce_toolset_types', '/wp-content/themes/THEME_NAME/js/toolset_fix.js', array( 'jquery' ), '1.0', true );
}
add_action( 'admin_enqueue_scripts', 'fix_tinymce_toolset_types' );
```

#2223051

Thank you very much for sharing this and it will surely help other users.

I'll perform some tests and then accordingly pass on this workaround, internally.

#2369339

I would like to inform you that the latest Toolset Types plugin (version 3.4.16) is released and contains the fix for this issue.
( ref: https://toolset.com/download/toolset-types/#changelog )

Please update all the Toolset plugins to the latest versions and let us know in case the issue persists.