Attach the editor's handlers once its markup is in the document.
What to do after a save, and on cancel
Attach the editor's handlers once its markup is in the document.