Add documentEdit and friends helper functions