EditLive! 9 Documentation : setDirectionForEditableSection Method

This property specifies the initial direction for the contents of a specified Inline Editing Section (represented either by a DIV or an instance of EditLive!).

Syntax 

JavaScript
editliveInstance.setDirectionForEditableSection(strDivID, strDirection);

Parameters

strDivID

This parameter is required.

The ID attribute for the DIV registered as an Inline Editing Section with EditLive! (via the addEditableSection Method).

strDirection

A string specifying the initial document body contents of the Inline Editing Section. There are two possible language directions:

  • ltr
  • rtl

The default value is ltr.

Examples

The following code would set the initial language direction of an Inline Editing Section with an id of "div1" to be right-to-left.

JavaScript
editlive_js.setDirectionForEditableSection("div1", "rtl");

Remarks

rtl

This parameter will set the Inline Editing Section to use right-to-left for the text direction.

ltr

This parameter will set the Inline Editing Section to use left-to-right for the text direction.

See Also