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

Make link toolbar button enabled when text above and link are selected. #17701

Draft
wants to merge 6 commits into
base: ck/epic/17230-linking-experience
Choose a base branch
from

Conversation

Mati365
Copy link
Member

@Mati365 Mati365 commented Dec 31, 2024

Suggested merge commit message (convention)

Fix (link): The Link toolbar button should now be enabled when the selection starts at a non-link element and ends at the end of a link. Closes #16965


Additional information

Before

before-link-changes-2024-12-31_10.56.17.mp4

After

after-link-changes-2024-12-31_10.53.54.mp4

… even if the selection starts before the link and includes other elements.
@Mati365 Mati365 requested review from niegowski and arkflpc December 31, 2024 10:06
@Mati365
Copy link
Member Author

Mati365 commented Dec 31, 2024

I discovered that it's related to general attributes handling mechanism behaviour, as it's reproducible on highlighted nodes.

This one is highlighted:
obraz

... but this one is not:
obraz

Not sure if making exception only for links is a good idea 🤔

@Mati365 Mati365 marked this pull request as draft December 31, 2024 10:48
@Mati365
Copy link
Member Author

Mati365 commented Dec 31, 2024

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant