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:
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.
This PR adds support for RTL line numbers via a new option (
side
) whose value may be eitherleft
orright
.When the option is set to
left
(or left un-set asleft
is the default), everything works as before. When the option is set toright
, the line numbers are moved to the right hand side of the editor, and thedir
attribute is set tortl
.A new demo has been added to the test page, as seen here:
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.