DocumentEditor formatting