Facebook has it !

When Writing with an RTL language the ticker goes to the other way which gives a very intuitive experience.
I need this for my community because we are bilingual.
Thanks Discourse … Love
Facebook has it !

When Writing with an RTL language the ticker goes to the other way which gives a very intuitive experience.
I need this for my community because we are bilingual.
Thanks Discourse … Love
@codinghorror, Hi Jeff, do you think this is something we can have in the short term ?
Have a look at an old topic here about RTL support.
https://meta.discourse.org/t/rtl-support/1784
There is a library that automatically sets the direction of each paragraph based on the content.
Sure, submit a pull request with the work if you want it. This is how open source works.
Is there any update for this feature? I desperately need it.
Even if there is a button to change direction of text, when we write english/arabic/persian, would be great.
I just added pr-welcome on this, hopefully a bilingual developer looking for a contribution will look at this one day.
I just found that there is an html5 tag dir=auto that simply works in most situations.
For example I wrote this html
<html>
<body>
<p dir="auto">Write this جمله چپ به راست text left-to-right!</p>
<p dir="auto">این RTL sentence جمله را از راست به چپ بنویس</p>
</body>
</html>
And pasted it in a simple html editor and it works perfectly fine
Could we use the same thing in discourse @sam?
btw I tried dir="auto" with firebug on <p> tags in discourse. However it didn’t do anything. I don’t know why.
des années plus tard, ce problème persiste. même lorsqu’un article est entièrement rédigé dans une langue RTL, il n’est pas aligné automatiquement.

(c’est l’éditeur, mais l’aperçu à droite est une représentation fidèle du produit final)
la seule solution qui fonctionne est d’ajouter des balises \u003cdiv dir=\"auto\"\u003e. comme l’a noté @hnaseri, \u003cp\u003e ne fonctionne pas, seul \u003cdir\u003e fonctionne.


je dois être honnête, c’est assez lamentable. il doit y avoir une meilleure façon que d’exiger des utilisateurs qu’ils ajoutent \u003cdiv dir=\"auto\"\u003e. en fait, ce n’est pas une solution suffisante, car si vous ouvrez votre div mais ne le fermez pas, le reste du texte sera forcé dans la direction de la toute première ligne, plutôt que d’être géré paragraphe par paragraphe. devoir ajouter un autre \u003cdiv dir=\"auto\"\u003e avant chaque paragraphe n’est pas vraiment une solution.



Je confirme juste qu’il s’agit d’un problème particulier sur les forums anglais où vous postez parfois en hébreu ? (endroits multilingues)
Car dans la locale hébraïque, tout semble être correct.
Une chose qui pourrait aider ici est :

Avec ce bouton activé dans la barre d’outils, c’est beaucoup plus facile comme aide ici. Pour l’activer, vous activeriez le réglage support mixed text direction.