Fix bug where style was lost pasting content.