jQuery not working in the editor anymore after update
- This topic has 6 replies, 2 voices, and was last updated 1 year ago by
gerda.
-
AuthorPosts
-
February 21, 2025 at 9:02 PM #47711
gerda
ParticipantHi!
I updated MB Blocks from 1.4.0 to the latest version 1.7.4.
Now jQuery is not working in the editor anymore.
I can see that my .js files are still loading in the backend but the code doesn't get applied anymore.
In the frontend, everything still works fine.Is there anything I need to do to make jQuery work in the editor after the update?
I added the code for example like this:
jQuery(document).on('mb_blocks_preview/gallery', function(){ // code goes here });February 21, 2025 at 10:54 PM #47715Peter
ModeratorHello Gerda,
This issue has been reported here https://support.metabox.io/topic/mb_blocks_preview-not-working/
and currently, it is not fixed yet.
I will get back to you when it is included in an update of MB Blocks plugin.Thank you.
February 22, 2025 at 5:00 PM #47718gerda
ParticipantThank you for the info, Peter.
So I can't use version 1.4.0 as is causing an issue where in the widgets area an error appears "This block has encountered an error and cannot be previewed.".
I see this is fixed in the newest version but now I can't update to the newest version because of the broken editor preview.
Is there any version where the issue in the widgets area is fixed but the editor preview is not broken yet? Can I access the different versions of MB Blocks anywhere?
February 24, 2025 at 9:49 PM #47728Peter
ModeratorHello,
Currently, we don't support downloading older versions of MB premium plugins. The development team is working on this issue and we will release an update to cover this issue as soon as possible.
Thanks.
May 9, 2025 at 4:43 PM #48213gerda
ParticipantHey there! I just updated to the newest version 1.7.5 but jQuery is still not working in this version. The current version is unfortunately unusable for me as I created blocks with complex masonry layouts that are broken in the backend. Are there any plans on fixing this issue in the near future? I really hope so!
May 9, 2025 at 10:19 PM #48214Peter
ModeratorHello,
Thanks for following up. Our development team has spent time investigating the issue, and it looks like a limitation of WordPress and the custom block. We are still trying to find a way to make the preview of custom blocks work in the editor.
I will let you know when it's done.May 14, 2025 at 11:40 PM #48259gerda
ParticipantOk thank you! Just letting you know that this issue does not exist in version 1.4.0.
-
AuthorPosts
- You must be logged in to reply to this topic.