Skip to content
This repository has been archived by the owner on Jun 18, 2024. It is now read-only.

Add auto-detection for links #9

Open
dlemmermann opened this issue May 12, 2021 · 1 comment
Open

Add auto-detection for links #9

dlemmermann opened this issue May 12, 2021 · 1 comment

Comments

@dlemmermann
Copy link

Add as an optional feature the ability to auto-detect urls in regular text.

@sghpjuikit
Copy link

I'm thinking of trying this (no promise)

I wonder if this is not relatively easy to do by tracking mouse drag events, looking up exact Text node hovered, down to exact letter (this might be the hard part) and applying text background on all in between Text nodes. Simple mechanism would select by Text nodes, then exact characters. The latter would be doable using simulated interpolation using JavaFX computeTextWidth(text, font) util method. The background would have to be interpolated as well - which may be tricky.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants