This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import domReady from '@wordpress/dom-ready' | |
import { compose, ifCondition } from '@wordpress/compose' | |
import { withSelect } from '@wordpress/data' | |
import { BlockControls } from '@wordpress/block-editor' | |
import { ToolbarButton } from '@wordpress/components' | |
import { formatBold, formatItalic } from '@wordpress/icons' | |
// Array of format types to unregister | |
// Check formats in browser console --> wp.data.select( 'core/rich-text' ).getFormatTypes(); | |
const formatTypesToUnregister = [ |