When you press Esc on an editor popup while in an edit dialog, the popup is closed.
Steps to reproduce:
- Find a post with a suggested edit
- Click the
edit(1)
link - Click Improve
- Use the editor to add a link
- Press Esc to cancel adding a link
- The whole Improve dialog gets removed, including all of the changes I've made. It should only remove the dialog to add a link.
Obviously, the same thing happens when you upload an image.