How can I prevent publishers from accessing the script editor in Google Sheets?

I have an automatic sort script on a Sheets document that I will allow to edit multiple people to add to the file. I have created a trigger so that the script also runs when other users are also editing the file.

The only thing I would like to do now is to prevent other users with editing permission from accessing the script editor and editing it. Is it possible to prevent access to the script editor to other collaborators with an editing permission?

I've read other answers saying to create a standalone script and programmatically create an installable trigger. I've created a stand-alone script, but I do not know how to use it with the Sheets document. When I tried to create an installable trigger, it only seemed to run the script once, and when I could access it from another user account still access the script editor too.