repair edit functionality pertaining to embedded links