Code style.
Performance improvements.
Rename domInvalidated event to contentDomInvalidated.
Modify contentDomInvalidated docs and move it to editor.js.
Add comments to checkWidgets method.