0

I'm having a problem with making textarea lines right-to-left for Persian and Arabic and left-to-right for English or others.

I can make the whole textarea auto direction but what about split lines of the text in textarea?

Brian Tompsett - 汤莱恩
  • 5,753
  • 72
  • 57
  • 129
Amir RS
  • 1
  • 1

1 Answers1

1

You could add atribute dir to your textarea element with value auto:

<textarea dir="auto"></textarea>

Now, browser will automaticaly detect text direction for each line.

Here is an example on JSFiddle

burlakvo
  • 43
  • 5