/Engine/Source/Runtime/Slate/Public/Widgets/Text/SlateEditableTextTypes.h
Get the direction of the text under the cursor
[TextBiDi::ETextDirection](API\Runtime\Core\Internationalization\TextBiDi__ETextDirection) GetCursorTextDirection() const