Description
This property specifies the initial direction for the body contents of the Ephox EditLive! applet.
Syntax
JavaScript
editliveInstance.setDirection(strDirection);
Parameters
strDirection
A string specifying the initial document body contents of the EditLive! applet. There are two possible language directions:
- ltr
- rtl
The default value is ltr.
Examples
The following code would set the initial language direction of EditLive! to be right-to-left.
JavaScript
editlive_js.setDirection("rtl");
Remarks
rtl
This parameter will set the body to use right-to-left for the text direction.
ltr
This parameter will set the body to use left-to-right for the text direction.