replacing newlines in the XML attribute with <p> in the <div contenteditable="true"> so they show up as newlines there.  Using contenteditable is the only way to enable precise dragging.