Generate paragraphs from pasted text
Undo for replacing text