Feature Request: Text Selection Popper Container Sharing Links
arihantverma opened this issue ยท 5 comments
Hey @kentcdodds!
I miss highlighting text in your detailed blogposts on medium. So I thought it'd be cool to be able to highlight text in the blogposts, and show a popper, containing, for example, twitter share icon, which will automatically pick selected text and open twitter box, pre filled with template text.
Using a useTextSelection
hook, which would return text and position of the text, which can be consumed for example by react-popper, wired with mousedown, mouseup, shift + keydown and shift + keyup events.
Would you like something like that? I've just started something like that over here (https://codesandbox.io/s/usetextselection-react-hook-wip-g0ksf
), thinking you might.
Reference โ https://codepen.io/FezVrasta/pen/YEVrGP
I really love the idea! Maybe I'll add it eventually :) Thanks!
Can I work on it? I'll raise a PR after I'm done.
Sure!
@gdad-s-river Greetings! Just wanted to follow up on the status of this work ๐
@JacobMGEvans I never properly worked in it and forgot about it ๐ . I plan on working on it in Feb and will update here