Changes the writing direction of all selected paragraphs. When the direction of a paragraph is changed, this paragraph's alignment is toggled from left to right or from right to left. The alignment of centered and justified paragraphs is not changed. Left and right tabulators are also toggled.

<void> Selection.changeDirection(<Direction> direction, [<EmptyRequestCallback> callback], [<ErrorCallback> errorCallback])

Parameters

Parameter Description
direction Specifies the new writing direction of the selected paragraphs.
callback Optional. Is called when the operation completed.
errorCallback Optional. Is called when the operation failed with an error.