Consistent inline styling in a Gutenberg-paragraph-block
To add custom options to that dropdown, you’d want to look at utilizing the Formatting API. Below are the main points quoted from the Block Editor Handbook step-by-step guide: Step 1: Register a new format The first step is to register the new format, add src/index.js with the following: import { registerFormatType } from ‘@wordpress/rich-text’; … Read more