RIP21 / react-simplemde-editor

React wrapper for simplemde (easymde) markdown editor
https://react-simplemde-edtior.netlify.com/
MIT License
770 stars 103 forks source link

how to make this RTL ? #218

Closed am0029 closed 1 year ago

am0029 commented 1 year ago

how to make this RTL ?

RIP21 commented 1 year ago

If easymde supports that, then it's probably possible. Check their documentation. It's nothing on the side of this react wrapper that can make it happen.

am0029 commented 1 year ago

i can not belieave it ?!!!

how this is possible ? simple function rtl or ltr not available !!!!!!!!!!!!

ok

RIP21 commented 1 year ago

Read the documentation of easymde. This library is just a wrapper on top of easymde. All the customisation of the editor comes from options prop that you pass when you render it. These configuration options are coming from easymde please go to easymde documentation and check how to do RTL there. https://github.com/Ionaru/easy-markdown-editor

RIP21 commented 1 year ago

Here is what a simple check of the easymde docs gave me in 2 seconds.

direction: rtl or ltr. Changes text direction to support right-to-left languages. Defaults to ltr.

RIP21 commented 1 year ago

So, in short. You should pass options object (don't forget to have out outside of render function) with direction being "rtl" and that is it.

RIP21 commented 1 year ago

And be polite when you ask something. Thanks.

am0029 commented 1 year ago

i saw that before i come here . not working with react it is just simple code that not working . i do not know why my application is react mern stack but in their documentation just plain java script

i do not know how to configure i just know how configure your mde sadly

because u do not respect to half of the world is rtl writhing

it is racist this move . make editor ltr and when people ask from you. you say not planned to do . ltr people best half of the world is nothing just english people can ??.

but i am sorry ok my friend .