Fix firing of content-changed when para editing and line-height cleaned up

Ensure that `content-changed` event is triggered with the cleaned up content when deleting across paragraphs (which causes line-height crap to appear in Chrome).

Also ensure that no faulty content is recorded in the undo manager history.