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

Preserve the selection visually when changing the link URL #17

Open
ngryman opened this issue Mar 31, 2023 · 0 comments
Open

Preserve the selection visually when changing the link URL #17

ngryman opened this issue Mar 31, 2023 · 0 comments
Milestone

Comments

@ngryman
Copy link
Owner

ngryman commented Mar 31, 2023

When the user focuses the URL field to update the link URL, the editor loses focus visually. This could be handled by subscribing to the editor blur event and highlighting the current selection with a new mark. When the editor has focused again, the mark is removed. A generic style extension could be created for that purpose (cf. https://github.com/ueberdosis/tiptap/blob/develop/packages/extension-text-style/src/text-style.ts).

@ngryman ngryman mentioned this issue Mar 31, 2023
@ngryman ngryman added this to the Basic Editor milestone Mar 31, 2023
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

No branches or pull requests

1 participant