tiptap icon indicating copy to clipboard operation
tiptap copied to clipboard

Focus extension for marks

Open joppehoekstra opened this issue 2 years ago • 2 comments

What problem are you facing?

When a user's cursor is inside a link, and the user changes the link, there is no visual indication this will be applied to the whole link. I would like the whole link to be highlighted when a cursor is placed inside.

What’s the solution you would like to see?

I would like a .has-focus class to be applied to focussed marks in addition to the focussed nodes.

What alternatives did you consider?

A more advanced Link extension that not only adds a .has-focus class when a cursor is placed inside, but also has gap cursor that can move from within the link to outside the link. This would solve the issue where a line ends with a link, and it becomes impossible to type on that line without making it all a link. I've made a video of what this could look like.

Anything to add? (optional)

No response

Are you sponsoring us?

  • [ ] Yes, I’m a sponsor. 💖

joppehoekstra avatar Jun 22 '22 09:06 joppehoekstra

So you would like this on any mark? Not only the link extension?

bdbch avatar Jun 24 '22 15:06 bdbch

This issue is stale because it has been open 45 days with no activity. Remove stale label or comment or this will be closed in 7 days

github-actions[bot] avatar Aug 09 '22 00:08 github-actions[bot]

So you would like this on any mark? Not only the link extension?

Right now, I can only think of a use case for the link extension.

joppehoekstra avatar Aug 28 '22 13:08 joppehoekstra