The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Disable drag and drop on certain confluence pages

Frithjof Falck
Contributor
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

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

1 vote
Answer accepted
Frithjof Falck
Contributor
September 15, 2023

Found an easier solution using pure CSS:

img {
pointer-events: none
}

TAGS
AUG Leaders

Atlassian Community Events