Building a better document editor