How to know current position (cursor) is gap cursor?

Hi, I want to detect is current cursor position is gap cursor cause copy&paste of drag&drop image on gap cursor works weird. How to know current position (cursor) is gap cursor?

state.selection instanceof GapCursor should work.

1 Like

thank you XD