How to change the direction of the text in TextArea widget in Axure?

page-and-widget-notes

#1

Hello,
I have a problem with the direction of the text in TextArea.
When I use TextArea widget and type a context in Persian language, I can not change the direction of the text (Right to Left or Left to Right). Alignment in style section is not enough for me , I need to change the dirction, Does anybody know how I can solve my problem?


#2

I don’t think Axure gives you a way to set it, but there is a CSS property for right-to-left text. You’ll probably need to either set it in your prototype via JavaScript or as an AxShare plugin.

As for what elements you need to apply it to, you might need to experiment or find someone or a source that knows as I don’t. You could try applying to body but I don’t know if that will mess up other things in the prototype or not. Maybe you need to selectively apply it to elements that contain text.

For example, to apply it to the <body> with JS, add an Open Link action to OnPageLoad with this as the URL:

javascript:void(document.body.style.direction = 'rtl')

See if that works.


#3

hello!
open html file in notepad
and change to

با نتپد فایل اچتمل رو باز کن و تگ

رو به صورت زیر تغییر بده <Body dir=rt

unlisted #4