Resize snapshot logic moved to undo plugin.
Combined two editor#contentDom listeners.