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:

Is there some way to edit the text of the hyperlink this way?
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:
Is there some way to edit the text of the hyperlink this way?