Skip to content
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

Link title is correctly applied through the command #5191

Merged
merged 1 commit into from
Nov 3, 2023

Conversation

petyosi
Copy link
Contributor

@petyosi petyosi commented Nov 2, 2023

ATM, the TOGGLE_LINK_COMMAND ignores the title in the payload. It's a one liner fix, but I wanted to ensure that it works as expected so an illustrative test is included.

Thanks!

Copy link

vercel bot commented Nov 2, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
lexical ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 2, 2023 4:22pm
lexical-playground ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 2, 2023 4:22pm

Copy link
Member

@zurfyx zurfyx left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thank you!

await editor.update(() => {
$selectAll();
toggleLink('https://lexical.dev/', {title: 'Lexical Website'});
// editor?.dispatchCommand(TOGGLE_LINK_COMMAND, {url: 'https://lexical.dev/', title: 'Lexical Website'})
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove or did you want to do something with it?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removing. That's how I wanted to test, but it would pull React, so I abandoned the idea.

@ivailop7 ivailop7 changed the title Link title is correclty applied through the command Link title is correctly applied through the command Nov 3, 2023
@ivailop7 ivailop7 merged commit 55bb444 into facebook:main Nov 3, 2023
42 of 44 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants