Add support for text direction in PastePad

Thanks for this. We’re going to take a look and see if we can improve things.