Major Changes
-
- The following plugins now default to
editOnly: true
. This means their core functionalities (handlers, rendering injections, etc.) will be disabled when the editor is in read-only mode. To override this behavior for a specific plugin, configure itseditOnly
field. For example,SomePlugin.configure({ editOnly: false })
.
- The following plugins now default to
-
- Package
@udecode/plate-select
has been deprecated. SelectOnBackspacePlugin
has been removed. This behavior is now built into Plate by default: delete (backward/forward) at the start of a block will select the previous/next void block instead of removing it.DeletePlugin
has been removed. This behavior is now built into Plate by default: delete (backward/forward) from an empty block will remove it instead of merging.RemoveEmptyNodesPlugin
has been removed. This behavior is now available through therules: { normalize: { removeEmpty: true } }
configuration on individual plugins.- Migration:
- Remove
@udecode/plate-select
from your dependencies. - Remove any usage of
SelectOnBackspacePlugin
,DeletePlugin
from your project. - Replace
RemoveEmptyNodesPlugin.configure({ options: { types: ['custom'] } })
withCustomPlugin.configure({ rules: { normalize: { removeEmpty: true } } })
. This is used by ourLinkPlugin
.
- Remove
- Package