Last active
February 10, 2021 14:45
-
-
Save elpuas/c1e806a074b97d1b83b3d8353bb926d0 to your computer and use it in GitHub Desktop.
Gutenberg Disable RichText Formats
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
wp.domReady( function() { | |
wp.richText.unregisterFormatType( 'core/bold' ); | |
wp.richText.unregisterFormatType( 'core/italic' ); | |
wp.richText.unregisterFormatType( 'core/strikethrough' ); | |
wp.richText.unregisterFormatType( 'core/subscript' ); | |
wp.richText.unregisterFormatType( 'core/superscript' ); | |
wp.richText.unregisterFormatType( 'core/text-color' ); | |
wp.richText.unregisterFormatType( 'core/image' ); | |
wp.richText.unregisterFormatType( 'core/underline' ); | |
wp.richText.unregisterFormatType( 'core/code' ); | |
} ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment