-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support RTL in the Preview pane #2524
Comments
Hmm so you start typing in an RTL language and the markdown widget automatically formats it right to left? If so we'll need to see if Slate outputs anything indicating that the content is RTL, maybe the preview can key off of that. |
Exactly |
@tareefdev, For the editor I use this code. (havent gotten around to PRing it yet) and its a little crude but it works: The preview itself I render with an dir="rtl" wrapper so it looks right in the editor and in the preview: I have a component I wrap all of my preview templates. This way i can also inject my custom css styles and control the direction |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Any updates on this? |
Hi @ShahriarKh, the best way to move this forward is by contributing. We'd happily accept a PR for this. |
Additionally, when typing in other locales(e.g. Chinese), the input direction get changed to RTL incorrectly. I guess this would be the same fix. |
Writing RTL text in the markdown editor works well. The text appears from right to left:
However, when pressing on the Preview button, the text rendered without
direction: rtl
property and appears from left to right:This is different from #1769 issue where the layout of the CMS itself was requested to support RTL.
Also, I would be happy to solve this issue if there is some info about where/how that work should be done.
netlify-cms-app 2.9.1
netlify-cms-core 2.11.0
The text was updated successfully, but these errors were encountered: