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

Commit

Permalink
Add documentation about textDirectionality prop (#1037)
Browse files Browse the repository at this point in the history
  • Loading branch information
flarnie authored May 9, 2017
1 parent 50ec6f9 commit 6d126b0
Showing 1 changed file with 12 additions and 0 deletions.
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

0 comments on commit 6d126b0

Please sign in to comment.