When in Sitecore's Page Editor mode clicks the Edit button, I have a DIV's style set to
top: 0;
so that it appears on top of the Page Editor buttons (Save, Save and Close, Insert, etc..). This div prevents the content editor from using the normal Page Editor buttons and forces them to use the custom Save, Save and Close, and Close buttons that I have added to the DIV.
Is there a way to programmatically exit Edit mode whenever they click on my custom Close or Save and Close button? I do not want to log them out of the Page Editor (just exit them out of edit mode). I only have 1 page where I am doing this, so I would rather not get into changing configurations in Sitecore to achieve this.