react-live icon indicating copy to clipboard operation
react-live copied to clipboard

Retrieve/react to selection range

Open souporserious opened this issue 8 years ago • 2 comments

First, thank you so much for this plugin 🙏 the flexibility and power is so nice.

I was wondering it there is any way to get the current selection range or the current position of the caret? Thinking it would really cool if there was some way to achieve functionality like https://snack.expo.io/ with the drag and drop components or even the ability to pop a menu of components and insert them inline.

souporserious avatar Jul 17 '17 23:07 souporserious

Sounds interesting for sure!

I'm a bit too busy to investigate this right now, but maybe something with onSelect and the vendored selection-range would work?

kitten avatar Jul 17 '17 23:07 kitten

I like that idea! :) I'll try and play around with this when I get a chance.

souporserious avatar Jul 18 '17 00:07 souporserious