Is your feature request related to a problem? Please describe.
The inline block is registered as a paragraph and therefor it cannot be de-registered/black listed.
Describe the solution you'd like
I鈥檇 like to be able to black list that block
Describe alternatives you've considered
Removing the entire block. It鈥檚 pretty confusing and buggy. And from what I can tell you can the same things with a paragraph + an image block that you float. But this alernative feels a bit too aggressive.
I would like to have this feature to block inline-images as well
I've used the inline image block to add images to lists, like this: https://github.com/WordPress/gutenberg/issues/12396#issuecomment-453152979
There should be a way to disable inline image block as there can be post types where no images are allowed. Currently I can restrict the block types on post type with the filter allowed_block_types
but can't disable inline image block for the post type as long as there is paragraph block.
Has someone found a solution to this? I'd really want to remove the 'inline image' block.
Inline images are not standalone blocks but a format type for the RichText Component (which is used for example in the paragraph block).
To disable usage of the inline image format you can use the following code to unregister them:
wp.richText.unregisterFormatType('core/image')
I can confirm this works (Gutenberg v6.6). Thanks for sharing @raphaelportmann
Most helpful comment
Inline images are not standalone blocks but a format type for the RichText Component (which is used for example in the paragraph block).
To disable usage of the inline image format you can use the following code to unregister them:
wp.richText.unregisterFormatType('core/image')