To switch an editor to a right-to-left representation, just enable a single property - 'rtl'. When this property is on, text flows from right to left in an editor and the editor itself is mirrored (the layout of its UI elements is reversed).
Number
Percentage
Currency