Hopefully this is a better implementation of the confirm before leaving. Should solve some problems with TinyMCE causing it to improperly say you made changes.