text edit index