Block apiVersion
-
Hi
There are messages in the dev tools console panel about deprecated block api version for some of your blocks. There is an example of the messages:
Block with API version 2 or lower is deprecated since version 6.9. See: https://developer.ww.wp.xz.cn/block-editor/reference-guides/block-api/block-api-versions/block-migration-for-iframe-editor-compatibility/ Note: The block “getwid/ai-text” is registered with API version 1. This means that the post editor may work as a non-iframe editor. Since all editors are planned to work as iframes in the future, set theapiVersionfield to 3 and test the block inside the iframe editor.Maybe related to this there are other warnings about css not atached to iframes:
getwid-blocks-editor-css was added to the iframe incorrectly. Please use block.json or enqueue_block_assets to add styles to the iframe.
<link id=”getwid-blocks-editor-css” rel=”stylesheet” href=”https://…cks.editor.css?ver=2.2.0” media=”all”>
You must be logged in to reply to this topic.