Implement pair text editing on client side.