Dom editing

Implement insertParagraph, insertNode.