Categories
WordPress

Remove Edit As HTML Option From Gutenberg Block

In your registerBlockType call to create the block you just need to add:

supports: { html: false }

Resources:

https://github.com/WordPress/gutenberg/issues/9571#issuecomment-505517467

Leave a Reply

Your email address will not be published. Required fields are marked *