mdx-editor / editor

A rich text editor React component for markdown
https://mdxeditor.dev
MIT License
2.07k stars 158 forks source link

How can I enable RTL (right-to-left) mode? #609

Closed Wojciech404 closed 1 month ago

Wojciech404 commented 1 month ago

There is no information in documentation about RTL mode. Lexical library seems to be supporting it, but I don't know how to enable this in MDXEditor. I've managed to do this with CSS overrides only, but Lexical keeps adding dir="ltr" to the text blocks. I think there should be an official correct way to do this.

petyosi commented 1 month ago

Feel free to sponsor the development of this feature or to submit a PR.