Skip to content

Commit

Permalink
Update richtext.md
Browse files Browse the repository at this point in the history
Simple typo fix
  • Loading branch information
janboddez authored Feb 15, 2024
1 parent c45bdbf commit 6bff063
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/reference-guides/richtext.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ If you'd still like to use RichText, you can eliminate all of the formatting opt

If you want to limit the formats allowed, you can specify using `allowedFormats` property in your code, see the example above or [the component documentation](https://github.com/WordPress/gutenberg/blob/HEAD/packages/block-editor/src/components/rich-text/README.md#allowedformats-array) for details.

### Disable specific fromat types in Editor
### Disable specific format types in Editor

The RichText component uses formats to display inline elements, for example images within the paragraph block. If you just want to disable a format from the editor, you can use the `unregisterFormatType` function. For example to disable inline images, use:

Expand Down

0 comments on commit 6bff063

Please sign in to comment.