Posted by escore on March 11, 2011 at 8:22am
I'm working to add support for content in right-to-left languages (arabic, hebrew, farsi etc) on my English interfaced site. Displaying the content works fine, due to some custom code, but when creating new content the input boxes (title, body etc) are LTR, even though I select the corresponding language in the language selection box. How can I correct this? Hooking form_alter?

Comments
Found a slick solution here:
Found a slick solution here: http://www.frequency-decoder.com/demo/detect-text-direction/
Just add some javascript and it will auto-detect if your typing a RTL or LTR language and switch direction automatically.
You can also force it with
You can also force it with various editors when you don't want to enable additional js.