slab / quill

Quill is a modern WYSIWYG editor built for compatibility and extensibility
https://quilljs.com
BSD 3-Clause "New" or "Revised" License
42.3k stars 3.31k forks source link

How to Show a Cursor for Drop Location in Quill Editor While Dragging? #4239

Open shlomilevi972 opened 1 month ago

shlomilevi972 commented 1 month ago

I have a draggable element:

<ul>
  <li draggable="true">drag me</li>
</ul>

I want to drag and drop this element into a Quill editor. I can handle the drop action by listening to drag events.

My question is: While holding the "drag me" element over the editor, is it possible to make the editor display a cursor that follows the mouse and indicates where the drop should occur?

like that (beaware that the cursor is should follow the mouse and is after the letter "e"):

image

Steps for Reproduction

  1. Visit stackblitz demo