From 41bdf33b84bb23bb42beb9f22bfdb9070518d684 Mon Sep 17 00:00:00 2001 From: Flarnie Marchan Date: Mon, 27 Feb 2017 07:17:43 -0800 Subject: [PATCH] Add documentation about textDirectionality prop --- docs/APIReference-Editor.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/docs/APIReference-Editor.md b/docs/APIReference-Editor.md index 459af43caf..8e67003b73 100644 --- a/docs/APIReference-Editor.md +++ b/docs/APIReference-Editor.md @@ -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