This is the discussion forum for the HtmlEditor. See also the HtmlEditor home page, where you can download the control, and the Documentation Wiki, a collaborative project for documenting the control.
Interesting question. Here's the result of a quick search:
1. There is reference in Microsoft's docs to support for right-to-left editing, but I can't find much on how you are meant to implement it. The suggestion is that if you are typing using a right-to-left character set, that the text direction will switch automatically. Might be worth a try.
2. There are also some command identifiers, which are documented as "not implemented", but which do seem to have some effect. For example, try adding this to HtmlEditor.cs:
public bool RtoL()
{
return this.execCommand(ComSupport.IDM_DIRRTL,null,false,true);
}
Now put the HtmlEditor into edit mode in an application and call RtoL. I now find that all text is right-aligned, and while typing is not true right-to-left, the caret does occasionally pop to where it should be for right-to-left typing - but that might be because I'm using a left-to-right character set.
If you work all this out, please document it in the documentation wiki.
thanks , i have done it , but typing is not true right to left.caret postion
does not move with typing.
you told me about left- to- right character set, are you using it ,
anywhere in code. i have installed urdu font ,i think it supports right
to left character set.
i am trying continue to do this,but not getting fruitful result.
Is there regional setting of language plays any role.
For this Use one attribute dir="rtl" - Right to left of body tag in Html that start ur text from right side of ur editor. But the main problem will still there that u can not type word from right to left because html does not support this functionality.
hey shashi how r u?
Man i also want to implement an urdu editor can you please guide me how to do it?
can you send me the code please
waiting for your response
thanx inamgull@gmai.com