Support Gutenberg block api version 3
-
Currently Ninja Forms prevents Gutenberg to run the iframed post editor. To make iframed editor to work, you need to upgrade your block definition. You can read more on iframed editor:https://make.wordpress.org/core/2023/07/18/miscellaneous-editor-changes-in-wordpress-6-3/
The solution:
- JS -> registerBlockType definition -> add apiVersion: 3 (both ninja-forms/submissions-table and ninja-forms/form)
- PHP -> blocks/form/block.json -> add “apiVersion”: 3
Until Ninja Forms gets fixed and if you do not use blocks provided by Ninja Forms, you can disable them to access the iframed editor.
add_action('init', function () {
unregister_block_type('ninja-forms/form');
unregister_block_type('ninja-forms/submissions-table');
}, 100);
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
The topic ‘Support Gutenberg block api version 3’ is closed to new replies.