Gutenberg block editor API 3 iframe version

Support Meta Box AIO Gutenberg block editor API 3 iframe version

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #49367
    HenriHenri
    Participant

    Hi support,

    I see that Meta Box AIO doesn't support the Gutenberg Editor API iframe version yet. The meta box light version does. When is meta box AIO also changing to the API post 3 version that wraps the editor in an iframe tag?

    This is important to me because I'm using the EtchWP plugin to build websites.

    As a workaround at the moment I thought to use the meta box light version. If I would use the light version and download all the extensions. Is that basically the same as the Metabox AIO version? Or is there a difference? If it is the same then I thought just to download the features that I need and I think then it would be iframe compatible.

    Kind regards,

    Henri

    #49381
    PeterPeter
    Moderator

    Hello Henri,

    Thanks for reaching out.

    Can you please create your custom block with the file block.json? Then you can add the attribute apiVersion to the custom block. Following the documentation https://docs.metabox.io/extensions/mb-blocks/#creating-the-blockjson-file

    #49382
    HenriHenri
    Participant

    Hello Peter,

    Thanks for your reply. I don't understand thought, because I'm not creating custom blocks for Gutenberg. I'm just checking if the Gutenberg editor is wrapped in an iframe to be API version 3 post compatible. If I check the editor when Metabox AIO is not installed, I get the Gutenberg editor in an iframe. See the following screenshot: https://share.zight.com/6qu4LgAL

    As soon as I install Metabox AIO version 3.3.2, the iframe is gone and the Gutenberg editor is no longer wrapped in an iframe. When I install an older version of Metabox AIO (in my case 1.16.5), the iframe wrapping occurs again. So the new version of Metabox AIO lacks something.

    Can this be checked by you?

    Kind regards,

    Henri

    #49393
    PeterPeter
    Moderator

    Hello,

    The iframe tag of the Gutenberg editor will be displayed depending on the block api version of all registered blocks. You can read more about this in the WordPress documentation https://developer.wordpress.org/block-editor/reference-guides/block-api/block-api-versions/

    The post editor will be iframed if all registered blocks have a Block API version 3 or higher. Adding version 3 support means that the block should work inside an iframe, though the block may still be rendered outside the iframe if not all blocks support version 3.

    There are some built-in blocks from MB User Profile that still have api version 2 so the iframe tag won't work. I'm going to escalate the issue to the development team to update all built-in blocks to api version 3.

    Thanks.

    #49400
    HenriHenri
    Participant

    Hello Peter,

    thanks for following up and to escalate the issue to the development team so that all built-in blocks will be updated to api version 3.

    Looking forward to the next release!

    #49402
    WolfgangWolfgang
    Participant

    Hey there,
    I've just stumbled across a similar problem. Developped a theme with GB-Blocks and then added the metabox plugin for some CPT and MB-Template extension for registering fields via my theme. I didn't change anything after installation of the AIO Plugin and it took me some time to realize that the blocks which get registered via the "MB Frontend Submission" Plugin using an older version which automatically deactivates the iframe in the editor.

    So as a Note for anyone coming across this problem: Deactivating the MB Frontend Submission Extension solves that problem!

    #49418
    Touchdown TechTouchdown Tech
    Participant

    I also am using Etch and noticed that when I have Meta Box AIO activated the old version of the block editor is used.

    Hoping for a fix on this soon because I do like using MB over ACF.

    #49420
    Touchdown TechTouchdown Tech
    Participant

    Hey Henri, I just found out that even with the AIO plugin, if you disable the User Profile extension, the iframe version of the block editor loads.

    Pretty great. I had written off using MB until this was resolved but I don't use the User Profile extension normally so I'm setting up a new website now with Etch and with Meta Box.

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