Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This is a monthly release with some major new features and lots of bug fixes
Breaking Changes
$copyNode(prevNode) now calls node.afterCloneFrom(prevNode) #7609
If you have code that assumes that
newNode.afterCloneFrom(prevNode)
will not be called as a result of$copyNode(prevNode)
, and would no longer work if it was, then it will need some refactoring. This is a very unlikely scenario.role
no longer removed from readonly LexicalContentEditableElement #7647The
role
attribute is no longer removed from readonly LexicalContentEditableElement for better accessibility compliance. This may require application and/or CSS changes in rare cases.New APIs
$config
protocol #7258There's a new protocol for creating new node classes, that's more concise, automatically generates the boilerplate for the static methods (
getType
,clone
,importJSON
) and has additional features for NodeState.See the Creating custom nodes with $config and NodeState documentation.
Highlights
Core
$config
protocol + NodeState registration/flattening (also [lexical] Bug Fix: Workarounds in $config protocol for loose inheritance #7659 [lexical] Bug Fix: Workarounds for import json #7661 [lexical-playground] Chore: Fix AutocompleteNode importDOM warning #7667 [lexical] Bug Fix: LexicalNode.getType() fallback to $config protocol #7671)TextNode.splitText
Clipboard
Code
Devtools
List
React
Table
SELECTION_INSERT_CLIPBOARD_NODES_COMMAND
dispatched from child editorsPlayground
What's Changed
New Contributors
Full Changelog: v0.32.1...v0.33.0