Implement text copying.