I have some content which is usually displayed, but the user can edit it by clicking an icon. Please see http://jsbin.com/kotesudenu for a demo.
How should the user be able save the data and close the editor, and cancel and close the editor.
EDIT. Here is a thought. Add a "Save", "Cancel", and "Close" button to the editor. The "Save" and "Cancel" is originally greyed out and inactive. If the text is changed, "Save" and "Cancel" become active and "Close" is greyed out. Or maybe combine "Cancel" and "Close", originally just have "Close", and when the text is changed, change the "Close" button to "Cancel". It might look like http://jsbin.com/ciyusaguco, but close/cancel is not yet working. Thoughts?