rtl() Since: 1.4.1
Gets if the editor is in Right-To-Left mode.
The default Right-To-Left mode will be picked up from the parent node of the editor.
Syntax
var isRtl = instance.rtl();
Return
Type: boolean
Gets if the editor is in Right-To-Left mode.
The default Right-To-Left mode will be picked up from the parent node of the editor.
var isRtl = instance.rtl();
Type: boolean
Sets if the editor is in Right-To-Left mode
instance.rtl(val);
val
Type: Boolean
If to make the editor into RTL mode.
Type: sceditor
Set the editor to right-to-left:
var textarea = ...;
sceditor.instance(textarea).rtl(true);
Set the editor to left-to-right:
var textarea = ...;
sceditor.instance(textarea).rtl(false);