Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Missing ,toggleFormat from last code block
  • Loading branch information
awps authored Mar 1, 2022
commit d75c392f513fb17a6b971bf7d85a1b831ea479c6
2 changes: 1 addition & 1 deletion docs/how-to-guides/format-api.md
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ By default, the button is rendered on every rich text toolbar (image captions, b
Here is an example that only shows the button for Paragraph blocks:

```js
import { registerFormatType } from '@wordpress/rich-text';
import { registerFormatType, toggleFormat } from '@wordpress/rich-text';
import { RichTextToolbarButton } from '@wordpress/block-editor';
import { useSelect } from '@wordpress/data';

Expand Down