Chris DeSalvo

Results 4 comments of Chris DeSalvo

I just finished writing a thing that takes the `x, y` from a drag/drop event and maps it to a Quill offset. It does what Jason suggested above, and handles...

`Document.caretPositionFromPoint()` is not a finalized api and isn't available on all of the platforms we have to support.

So far I've had zero problems with my own implementation, and it provides more info than just a caret position, and handles cases like going past the end of content...

It wasn't something I was considering for inclusion in Quill. But not opposed to it either. It did find a bug just moments ago though. If pixel position you're querying...