Skip to main content

HTMLComponent RTL

1 reply [Last post]
stern23
Offline
Joined: 2010-10-29
Points: 0

Hello,
I tried to use HTMLComponent with a full html file, which includes test in arabic like:
<html>

<body>
<div dir="rtl">
here the arabic text should be
<div></body>
</html>
But it wasn't the right direction I got everthing LTR..
here is my code:
comp.setHTML(myHtmlString, "UTF8", "title", true);
comp.setRTL(true);
myForm.addComponent(comp);

What I miss?
Thank you
Stern

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
ofirl
Offline
Joined: 2008-06-24
Points: 0

Currently, we support the dir attribute only for the HTML tag - which is the only place it is supported for the XHTML-MP 1.0 standard.