-
Notifications
You must be signed in to change notification settings - Fork 4.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Disabling inline image block #12680
Comments
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: #12396 (comment) |
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 |
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). |
I can confirm this works (Gutenberg v6.6). Thanks for sharing @raphaelportmann |
Based on the reply from @raphaelportmann I will go ahead and close the issue as a solution has been found. Please reopen if I am mistaken. @mkaz Marcus do we need to add additional information into the documentation? |
Adds a new question/answer to rich text documentation for disabling a specific format type either by using allowedFormts or unregister a format. Related: #12680
Adds a new question/answer to rich text documentation for disabling a specific format type either by using allowedFormts or unregister a format. Related: #12680
* Add section for disabling specific format types Adds a new question/answer to rich text documentation for disabling a specific format type either by using allowedFormts or unregister a format. Related: #12680 * Update allowedFormats as prop to component * Add pointer to example above
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’d like to be able to black list that block
Describe alternatives you've considered
Removing the entire block. It’s 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.
The text was updated successfully, but these errors were encountered: