Fire 'saveSnapshot' in setData.
Unified the way two callbacks are added in setData.
Introduce editable.status.
Check the status of editable in undo manager.
Do not change snapshots stack when editor is in mode difference than 'wysiwyg'.
Remove if !this.editor.mode, this is checking later.
Add status 'detached' to editable.
Set status 'ready' only if previous status was 'unloaded'.
Fixed mixed spaces with tabs in doc strings.
Sourcearea's status has to be set to ready too.
Set editable status precisely.
Code optimization - better to have one listener only.
Moved faster conditions before slower ones, added caching.
Introduced undoManager#lock alwaysUpdate flag.
Make sure that if no changes has been made in source mode snapshot containing insignificant DOM differences like bogus <br>s is not saved when switching to wysiwyg mode.