document type editor