This document lists the changes made between the different API versions.
- The post editor will be iframed if all registered blocks have a Block API version 3 or higher and the editor has no classic meta boxes below the blocks. 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.
- To render the block element wrapper for the block's
edit
implementation, the block author must use theuseBlockProps()
hook. - The generated class names and styles are no longer added automatically to the saved markup for static blocks when
save
is processed. To include them, the block author must explicitly useuseBlockProps.save()
and add to their block wrapper.
Initial version.