Which event can i use to get the currnt selected text in a React component? The text is wrappend with a div and is not paart of a HTML form.
Asked
Active
Viewed 1,670 times
0
-
@Chris This is in the right direction but how can i attach that event only to specific react components since this is a global event – Vandervidi Jun 26 '17 at 07:20
-
2Just create a function as shown in the linked answer and trigger it on the component you want with `onMouseUp`. – Chris Jun 26 '17 at 07:35
-
1@Chris Nice idea. thank you i will try it – Vandervidi Jun 26 '17 at 07:37