jQuery not working in the editor anymore after update

Support MB Blocks jQuery not working in the editor anymore after update

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #47711
    gerdagerda
    Participant

    Hi!

    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
    
    });
    #47715
    PeterPeter
    Moderator

    Hello 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.

    #47718
    gerdagerda
    Participant

    Thank 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?

    #47728
    PeterPeter
    Moderator

    Hello,

    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.

    #48213
    gerdagerda
    Participant

    Hey 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!

    #48214
    PeterPeter
    Moderator

    Hello,

    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.

    #48259
    gerdagerda
    Participant

    Ok thank you! Just letting you know that this issue does not exist in version 1.4.0.

Viewing 7 posts - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.