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

Support for RTL Line Numbers #101

Closed

Conversation

StevenEWright
Copy link

@StevenEWright StevenEWright commented Jul 24, 2023

This PR adds support for RTL line numbers via a new option (side) whose value may be either left or right.

When the option is set to left (or left un-set as left is the default), everything works as before. When the option is set to right, the line numbers are moved to the right hand side of the editor, and the dir attribute is set to rtl.

A new demo has been added to the test page, as seen here:

image

The Arabic text in the demo page exists because many people will likely not be able to easily generate text of sufficient length to properly test the component easily. It is Arabic Lorem Ipsum.

@antonmedv
Copy link
Owner

Thanks for the PR! But I decided to drop support for line numbers in Codejar.

@antonmedv antonmedv closed this Jul 25, 2023
@antonmedv
Copy link
Owner

Feel free to release it as a separate package 'codejar-linenumber' and add the link to the readme here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants