pell icon indicating copy to clipboard operation
pell copied to clipboard

LTR/RTL Support

Open TheHolyWaffle opened this issue 7 years ago • 4 comments

RTL (Right-To-Left) support is quite necessary when using the editor to write in languages such as hebrew or arabic. A simple text alignment right does not result in the same effect.

https://www.w3schools.com/tags/att_global_dir.asp

Preferrably, buttons to switch text direction to LTR or RTL is what is needed here.

TheHolyWaffle avatar Apr 19 '18 08:04 TheHolyWaffle

Interesting issue. This seems extremely non-standard. Have any examples other native web elements that allow RTL support?

jaredreich avatar Apr 19 '18 12:04 jaredreich

  • Global 'dir' attribute: can be used on any element to specify text direction (See https://www.w3schools.com/tags/att_global_dir.asp)
  • bdi and bdo tags to override directionality
  • More information (css-tricks)
  • tinymce directionality plugin: https://www.tinymce.com/docs/plugins/directionality/
  • quill support: https://quilljs.com/docs/formats/
  • summernote plugin: https://github.com/virtser/summernote-rtl-plugin

TheHolyWaffle avatar Apr 19 '18 13:04 TheHolyWaffle

@TheHolyWaffle thanks for the info. If this is necessary for you, feel free to submit a PR!

jaredreich avatar Apr 19 '18 13:04 jaredreich

Please make this a per-paragraph feature. Having this affect the whole text is not fun for us RTL'ers (imagine including a code section).

amireldor avatar Apr 27 '18 23:04 amireldor