1

I'm using jHtmlArea in my project. I want to write in "Right To Left" direction mode. But it only supports Left to Right. How can I do in this way?

Paebbels
  • 15,573
  • 13
  • 70
  • 139
Emad Armoun
  • 1,625
  • 2
  • 19
  • 32

1 Answers1

2

I found the answer by myself.

I attached a css file to my jHtmlArea. then set the direction in it.

$('textarea').htmlarea({
    css: "/MyRootFolder/Styles/jHtmlArea/jHtmlArea.Editor.css"
});

jHtmlArea.Editor.css :

body 
{
    background: #FFF;
    color: #000;
    margin: 2px;
    direction: rtl;
    font-family: tahoma;
    font-size: 13px;
}
Emad Armoun
  • 1,625
  • 2
  • 19
  • 32