Unfortunately, there is no easy way to accomplish this. As usual, if there is a will there is a way, but there is nothing supported or some way that I can think of that does not require quite an effort.
I have written something, but just can't find which file I should edit (I think it’s somewhere inside appdata\Modules, but whatever I edit doesn't seem to affect what I view..
I'm wanting to run
The above hides the button when run in the console.
I added to one of pages, but it doesn't work, as the page loaded inside an iFrame, so separate to the rest of the UI...
Add the following configuration under the clientModule section in your module config file to run this module automatically after the CMS module:
<add dependency="CMS" type="RunAfter" />
If a page is being edited by one user, another user is told that page is being edited.
However, they can opt to "Edit anyway"..
is there a way to prevent users from doing this?