You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a site with old galleries that I wanted to convert to Gutenberg blocks. When clicking the Convert to blocks button in the admin it worked, but running this script it failed loading the images. After a lot of testing I found out that the save function is called directly and not giving the Gutenberg script enough time to modify all the images / content.
@mdesplenter We have a PR up to fix this issue. If you have time to test that out and let us know if that fixes your issue, that would be great. Thanks!
Describe the bug
I have a site with old galleries that I wanted to convert to Gutenberg blocks. When clicking the Convert to blocks button in the admin it worked, but running this script it failed loading the images. After a lot of testing I found out that the save function is called directly and not giving the Gutenberg script enough time to modify all the images / content.
Adding the timeout around the save function fixed it for me:
https://github.com/10up/convert-to-blocks/blob/develop/assets/js/editor/editor.js#L69
Takes more time, but better results for me.
Steps to Reproduce
Screenshots, screen recording, code snippet
No response
Environment information
No response
WordPress information
Latest Wordpress, local, with Bedrock
Also tried without Bedrock.
Code of Conduct
The text was updated successfully, but these errors were encountered: