With this example (https://prosemirror.net/examples/upload/), If I attempt to drag and drop an image onto a drop cursor in the editor, and the editor content contains only nodes like block images without any text, then state.selection consistently returns from:0 .
However, if there is text present in the editor, state.selection consistently provides the position of the last text cursor, whereas what I had anticipated was the position of the drop cursor.
I attempted to understand why this was happening and noticed that when I dropped an image onto the drop cursor, the console.log(state.selection) indicated that the selection was not a ‘drop cursor’ but rather a ‘node’.
Then, no way to insert an image into the drop cursor? Is there any way to use a logic similar to drag and drop nodes for change position with drop cursor?
@marijn thank you for your support
@marijn when we drag over listItems that are positioned with margin the drop cursor’s position fails to reflect the actual position unless we remove all margin.