-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(richtext-lexical): make decoratorNodes and blocks selectable. Centralize selection and deletion logic #10735
Conversation
override decorate(): React.ReactElement { | ||
return <HorizontalRuleComponent nodeKey={this.__key} /> | ||
override decorate() { | ||
return null |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why remove this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
HorizontalRuleComponent doesn't do anything anymore. It used to be responsible for node selection and deletion, but that is now done in DecoratorPlugin.
🚀 This is included in version v3.19.0 |
Note: arrow navigation will be introduced in a later PR.
Screen.Recording.2025-01-22.at.6.26.56.PM.mov