Use getSnapshot() and loadSnapshot() to save and restore the editor's contents.

Controlling the editorCanvas events