Writing and editing text items