_applyEdit() for applying an edit to selection