Fix undo registering when pasting and dragging

See: https://github.com/learndot/sproutcore-wysiwyg/issues/22