This is using Firefox under Ubuntu 13.x:
The problem:
If the wiki is RTL (Hebrew, for instance), start editing an empty page. The caret appears on the left side and the typing is done LTR.
I did a quick check, and noticed that there is a class added to the content box - "ve-ui-surface mw-content-ltr" even when the page language is rtl (defined in the <html dir="rtl"..>
I found this addition in the ve.init.mw.ViewPageTarget line 786:
this.surface.$.addClass( 'mw-content-' + mw.config.get( 'wgVisualEditor' ).pageLanguageDir );
In my system this produced "mw-content-ltr" despite the fact the page language was Hebrew and the html direction was defined as rtl.
However, I then tried to forcefully change it to rtl, just to test, and while the class appeared correctly (mw-content-rtl), the direction of the typed text was still LTR. It remained LTR when I changed the language to English.
Version: unspecified
Severity: normal
OS: Linux