RichTextView icon indicating copy to clipboard operation
RichTextView copied to clipboard

RTL Language support?

Open alielsokary opened this issue 5 years ago • 2 comments

What is the purpose of your issue?

  • [x] Bug
  • [x] 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 avatar Jan 17 '20 01:01 alielsokary

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?

alielsokary avatar Jan 23 '20 11:01 alielsokary

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 avatar Feb 28 '20 20:02 BisuGit