How to remove the dropCursor programmatically?

Hi all,

I’m listening for the drop event within the codemirror 6 editor
When something gets dropped, an eventual file gets processed

Now I’m using the dropCursor() extensions and there’s the problem that, after dropping, the drop-cursor dummy stays at the dropped position

I can still move the real cursor around but the dummy remains

My question is - how can I remove that cursor programmatically?

I appreciate your help,

Thank you,
Simon

You can’t remove it programmatically, but you shouldn’t need to—it sticking around was a bug. To properly solve that I’ve added a thing called “event observers”, which always run, even if other extensions handle the event. That should fix this. See these patches.

You’re amazing, thank you!