SCEditor

rtl()

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

rtl(val) Since: 1.4.1

Sets if the editor is in Right-To-Left mode

Syntax

instance.rtl(val);

Parameters

val
Type: Boolean

If to make the editor into RTL mode.

Return

Type: sceditor

Example

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);