-
Notifications
You must be signed in to change notification settings - Fork 95
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
RTL support #882
Comments
Or better add |
Ideally that would be something solved upstream in ueberdosis/tiptap#116 but I guess we can also add custom nodes for that as suggested there. |
Yup, this better be implemented in the core project. |
My temporary workaround for this is to install "JSLoader" app, then go to Settings => "JavaScript loader" (Under "Administration" section) then add/paste this code:
Then click "Save". Not ideal, not efficient, ... but at least it works. |
Interesting pull request on tiptap ueberdosis/tiptap#2963 |
I wrote a extention that automatically adds |
But how to use this with NextCloud ? It a must for all text editors in email, notes, wikis etc. |
Notes, Collectives and Deck use the text editor so they would directly benefit from implementing it here. Other apps would need to be handled separately. See also nextcloud/server#31420 for general RTL support in Nextcloud. |
Good reference on how to adapt the UI bits is nextcloud/forms#1654 |
First version https://github.com/nextcloud/text/pull/6874/files supports:
As follow-up content inside of tables should be supported too. @hamza221 could you please look in it / check if a first PR (result) make sense in your eyes? Thank you! |
After some testing of If there are no mixed forms, like Arabic-Latin, then it seems to work fine. We can create a follow-up issue to observe / fix it in future. |
Hi, I'm the maintainer of TextDirection.configure({
types: ['bulletList'],
}), With this configuration, the You probably want something like this: TextDirection.configure({
types: ['listItem'],
}), With this configuration, the direction is calculated independently for each list item. Don't forget to add the appropriate CSS styles. There is an example in the README. I think the same thing can be done with the table too. I'm just guessing here, I haven't looked into the code. Feel free to create an Issue if the problem persists. I try to address it as soon as I can, which is admittedly not very fast at the time. |
Thank you @amirhhashemi a lot! I will look into possible fix a bit later! Could you please have a look into PR: amirhhashemi/tiptap-text-direction#19, (and make release if it is ok) because this one should fix our CI. Thanks a lot! |
@JuliaKirschenheuter Released in v0.3.2 |
Dear @amirhhashemi, Thanks again! I was able to fix styles for lists, but can't find |
Looks like you haven't configured TextDirection.configure({
types: ['heading', 'paragraph', 'listItem', 'orderedList'],
}), It should be something like this: TextDirection.configure({
types: ['heading', 'paragraph', 'listItem', 'orderedList', 'tableCell'],
}), I just added |
Solution: Please add
dir="auto"
(In the element that has the class "ProseMirror") so the text will be automatically LTR/RTL depending on the typed text.The text was updated successfully, but these errors were encountered: