Availability: >= 3.0
Type: Object Property
Description: Sets the default direction of text displayed in the editor.
$editor->htmlDirection = string $direction;
If you are editing a complete HTML document that specifies the HTML direction using the dir attribute on the HTML tag or through a stylesheet then you do not need to set this property. This property is intended for when editing a snippet of HTML code. This affects the way content is displayed in the editor, it does not actually alter the HTML generated by the editor.
- 'ltr' for left to right direction.
- 'rtl' for right to left direction.
$editor->htmlDirection = 'rtl';