Hello @softboy99
As far as I understand, you have posted the same request in different thread where the possible solution was provided:How can i find the current cursor position - #9 by Constantine
Additionally, probably this sample might be useful for drag&drop scenario: sdkjs-plugins/connector/example_drop at develop · ONLYOFFICE/sdkjs-plugins · GitHub
If I misunderstood your request, please provide us with details.