https://bugzilla.wikimedia.org/show_bug.cgi?id=48765

       Web browser: ---
            Bug ID: 48765
           Summary: Content is LTR even when the page language is RTL
           Product: VisualEditor
           Version: unspecified
          Hardware: All
                OS: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: Unprioritized
         Component: ContentEditable
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected],
                    [email protected], [email protected]
    Classification: Unclassified
   Mobile Platform: ---

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.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to