Adding a custom button to WordPress Add Post (and Edit Post too) screen, that can save the post

Well, the solution couldn’t be more obvious.

The Add New Post screen is a one big form. Any <input type="submit"/> element you put in it will save the post.