kensnyder / quill-image-drop-module

A module for Quill rich text editor to allow images to be pasted and drag/dropped into the editor.
214 stars 78 forks source link

Drop images at exact coordinates instead of last caret position #2

Closed kensnyder closed 7 years ago

kensnyder commented 7 years ago

It looks like we can use document.caretRangeFromPoint which now works on all browsers except for IE.

See CKEditor code here for reference on how they currently do it.

kensnyder commented 7 years ago

Added in v1.0.3