- The block validator is more lenient toward equivalent encoding forms.
getBlockAttributes
,getBlockTransforms
,getSaveContent
,getSaveElement
andisValidBlockContent
methods can now take also block's name as the first param (#11490). Passing a block's type object continues to work as before.registerBlockStyles
andunregisterBlockStyles
can be triggered at any moment (before or after block registration).
- Paste: Google Docs: fix nested formatting, sub, sup and del.
- Expose @wordpress/editor to Gutenberg mobile.
- Separate Paste Handler.
isValidBlockContent
function has been added (#10891).
isValidBlock
function has been deprecated (#10891). UseisValidBlockContent
instead.
- Attribute type coercion has been removed. Omit the source to preserve type via serialized comment demarcation.
setUnknownTypeHandlerName
has been removed. Please usesetFreeformContentHandlerName
andsetUnregisteredTypeHandlerName
instead.getUnknownTypeHandlerName
has been removed. Please usegetFreeformContentHandlerName
andgetUnregisteredTypeHandlerName
instead.
- Added a
unregisterBlockStyle()
function to remove a block style variation.
getDefaultBlockForPostFormat
has been removed.
- The
isSharedBlock
function is removed. UseisReusableBlock
instead. - Change how required built-ins are polyfilled with Babel 7 (#9171). If you're using an environment that has limited or no support for ES2015+ such as lower versions of IE then using core-js or @babel/polyfill will add support for these methods.
- The
getDefaultBlockForPostFormat
function has been deprecated.