Also other webkit based browsers needs additional handling for pagebreak click.
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.
Callback is executed when setData completed its job, so fire saveSnapshot before that.
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.
Avoid two getData() calls in a row by reusing data set when detaching editable.