Skip to content
This repository has been archived by the owner on Feb 6, 2023. It is now read-only.

Add documentation about textDirectionality prop #1037

Merged
merged 1 commit into from
May 9, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions docs/APIReference-Editor.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,18 @@ to fit it within your UI design.
If this value is not set, text alignment will be based on the characters within
the editor, on a per-block basis.

#### textDirectionality
```
textDirectionality?: DraftTextDirectionality
```
Optionally set the overriding text directionality for this editor. The values
include 'RTL' for right-to-left text, like Hebrew or Arabic, and 'LTR' for
left-to-right text, like English or Spanish. This directionality will apply to
the entire contents, regardless of default text direction for input text.

If this value is not set, text directionality will be based on the characters
within the editor, on a per-block basis.

#### blockRendererFn
```
blockRendererFn?: (block: ContentBlock) => ?Object
Expand Down