Fix undo registering when pasting and dragging

See: https://github.com/learndot/sproutcore-wysiwyg/issues/22
Merge pull request #24 from nicolasbadia/master

Fix undo registering when pasting and dragging