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

RTL Language support? #136

Open
2 of 3 tasks
alielsokary opened this issue Jan 17, 2020 · 2 comments
Open
2 of 3 tasks

RTL Language support? #136

alielsokary opened this issue Jan 17, 2020 · 2 comments
Labels
feature Related to adding additional functionality help wanted Extra attention is needed

Comments

@alielsokary
Copy link

alielsokary commented Jan 17, 2020

What is the purpose of your issue?

  • Bug
  • Question
  • Other

Description

I want to display some Arabic content inside a RichTextView but I can't find a way to properly align the text to the right. is there any way to do it?

Expected behavior
I want the Arabic text to be aligned from right to the left.

Version:

  • OS w/ Version: iOS 11
  • RichTextView Version : v2.6.5

Additional context, screenshots, screencasts
Simulator Screen Shot - iPhone X - 2020-01-17 at 03 26 11

@alielsokary
Copy link
Author

I managed to align the text by putting the data inside div align="right" and for ordered and unordered list i used direction: rtl;

"""
<div align="right">
<style type="text/css">
ul { direction: rtl; }
ol { direction: rtl; }
</style>
\(dataHere)
</div>
"""

But is there any support for this inside the RichTextView itself?

@BisuGit
Copy link
Collaborator

BisuGit commented Feb 28, 2020

Hello @alielsokary. This is something that we do not support currently but is a good feature to have. If you want to feel free to open a pull request to address this issue.

@BisuGit BisuGit added help wanted Extra attention is needed feature Related to adding additional functionality labels Feb 28, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
feature Related to adding additional functionality help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants