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

fix(link): fixed link cursor focus #648

Open
wants to merge 7 commits into
base: main
Choose a base branch
from
Open

Conversation

ReFFaT
Copy link
Contributor

@ReFFaT ReFFaT commented Feb 20, 2025

I solved a problem where if we used a link to the selected text, the focus would be on the penultimate character. The problem was that the link wraps the selected text in [text] and adds one character before. It turns out that the focus that was already there remains in place, but an invisible additional character appears in the text. I solved the problem by adding an empty text selection. However, it was not possible to attach it to the existing dispatch — the link was copied to the plain text. When creating a new dispatch, the problem was solved. If you can tell me how to get around this, I would fix the re-dispatch.

@gravity-ui-bot
Copy link
Contributor

Preview is ready.

@ReFFaT ReFFaT self-assigned this Feb 20, 2025
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.

3 participants