-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
[lexical-react] Feature: add attributes in LinkPlugin #6760
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
size-limit report 📦
|
code lgtm, can we have some tests please to check that attributes are added to link on paste? |
...attributes, | ||
rel, | ||
target, | ||
title, |
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.
this means that the link attribute contents of payload will overwrite the contents of attributes
@potatowagon I have added a test, so please check it out. |
thanks for this! |
Thanks for the plugin. But if i switch off attributes after link is created - it doesn't removes target="__blank" atribute from node. |
Description
Add attributes when pasting a link into a text.
Test plan
Before
Can not add
target
Screen.Shot.2024-10-25.at.16.18.09.mp4
After
Can add
target
Screen.Shot.2024-10-25.at.16.18.49.mp4