document and text edit