Skip to content
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

Add bidi support #1191

Merged
merged 2 commits into from
Dec 29, 2023
Merged

Add bidi support #1191

merged 2 commits into from
Dec 29, 2023

Conversation

ahangarha
Copy link
Contributor

@ahangarha ahangarha commented Dec 25, 2023

This PR is a part of a series of PRs to the NextCloud ecosystem to add bidirectional text support.

In terms of the overall layout, this PR doesn't make any changes in the UI in LTR language (and in the current state of the NextCloud server for RTL language). But it brings flexibility to the UI so that in the RTL layout, it makes automatic adjustments.

Since the editor is a third-party package, adding bidi support to it will take longer time. We might even consider other options as codemirror failed in adding bidi support for a long time. But for the Preview, I added markdown-it-bidi which is working fine now.

Screenshot (in RTL layout)

image

Signed-off-by: Mostafa Ahangarha <ahangarha@riseup.net>
Signed-off-by: Mostafa Ahangarha <ahangarha@riseup.net>
@juliusknorr juliusknorr merged commit f244f1e into nextcloud:main Dec 29, 2023
9 checks passed
@juliusknorr
Copy link
Member

Thanks so much for this contribution @ahangarha

@ahangarha ahangarha deleted the add-bidi-support branch December 29, 2023 12:34
@ahangarha
Copy link
Contributor Author

Thanks for your review and merge.

Is there any particular reason to stick to a markdown editor based on codemirror? I am unsure how long it would take for codemirror to add bidi support.

If not, I think there are good, viable options to consider.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3. to review enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants