Versioned documents and ranges for implementing editors