Skip to:
The scenario:
A commit message is required to save an entry
You are switching editors while typing
You clicked "OK" on the "Would you like to save your work before switching editors" popup
The save will not execute due to the lack of required commit message
The page will still reload anyway causing you to lose your work.
This turned out to expose other inadequacies in the JavaScript. I updated it so it is more encapsulated in the shared editors and setup.
The scenario:
A commit message is required to save an entry
You are switching editors while typing
You clicked "OK" on the "Would you like to save your work before switching editors" popup
The save will not execute due to the lack of required commit message
The page will still reload anyway causing you to lose your work.