-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Set direction of the text automatically (For RTL text) #3085
Comments
This is the only missing part that keeping me from using Tiptap. |
This issue is stale because it has been open 45 days with no activity. Remove stale label or comment or this will be closed in 7 days |
+1 |
+1 |
1 similar comment
+1 |
Any updates? |
This is what you are looking for: https://github.com/amirhhashemi/tiptap-text-direction I made a PR to add this feature a while ago but the core team didn't seem very interested. Maybe because they are not familiar with a RTL language. |
@mokazemi @amirhhashemi yes we (or at least I am) inexperienced with RTL languages and I think I personally could improve here. Could you point me to the PR regarding this issue? I'd be interested if we can implement support without breaking existing Extensions. |
@bdbch This is the original PR: #2963 If you want to test the latest version checkout this repo: https://github.com/amirhhashemi/tiptap-text-direction. It's pretty much the same thing but I fixed some bugs and added more stuff. |
@amirhhashemi thanks for the extension, i can confirm it works on vue3 and saved me a lot of the trouble cheers! |
@amirhhashemi Thank you! for developing this man, I'm facing some problems with this plugin and I'm using nextjs. |
@coderyeasin Thank you for reporting this. I opened an issue in the main repo: amirhhashemi/tiptap-text-direction#8 Please refer to that for further follow-up |
What problem are you facing?
I can't use the editor for Right-to-Left languages, because there's no option for it.
So the editor is only limited to English and other Left-to-Right languages.
What’s the solution you would like to see?
There are some ways to set text direction automatically. For example this area that I'm writing in (Github text area!) has this feature.
So when I write something in a RTL languages, it's displayed correctly.
What alternatives did you consider?
There could at least be a button for it like some Word Processors such as Google Docs, like this:
![image](https://user-images.githubusercontent.com/18334056/184470599-c48f70e0-44da-485b-b35c-c33f621984ef.png)
But some text editors such as Github text area doesn't have it, but set the direction automatically.
Anything to add? (optional)
I'm facing this problem in the Nextcloud Editor
Are you sponsoring us?
The text was updated successfully, but these errors were encountered: