Disable drag and drop on certain confluence pages

frithjof falck September 15, 2023

Does anyone have som jquery code to prevent this from happening? I want to prevent the page from reloading if a user accidentally drags and drops a file on the page in view mode.

The code will be injected through a user macro.

1 answer

1 accepted

1 vote
Answer accepted
frithjof falck September 15, 2023

Found an easier solution using pure CSS:

img {
pointer-events: none

Suggest an answer

Log in or Sign up to answer
AUG Leaders

Atlassian Community Events