Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

How to edit the text of a hyperlink #994

Closed
FranzDeschler opened this issue Dec 31, 2020 · 1 comment · Fixed by #995
Closed

How to edit the text of a hyperlink #994

FranzDeschler opened this issue Dec 31, 2020 · 1 comment · Fixed by #995

Comments

@FranzDeschler
Copy link

So far, I managed to implement a custom hyperlink segment and I am able to edit the text and the url of the hyperlink in a dialog window. But now I want to make editing the text even more simpler by just setting the cursor in the hyperlink segment and start typing.
But when I do this, the hyperlink segment is split into two separate hyperlinks and plain text between.

This behaviour is also reproducible in the Hyperlink Demo.

To reproduce this, simply run the demo with an editable textarea.
Place the carent in the middle of the hyperlink (using the arrow keys - clicking would open the link) and start typing.
You will end up with somethink like this:
grafik

Is there some way to edit the text of the hyperlink this way?

@Jugen
Copy link
Collaborator

Jugen commented Jan 12, 2021

See submitted PR 995 to address this. It may still need some tweaking .... but the basic functionality is there now.

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

Successfully merging a pull request may close this issue.

2 participants