xulihang Well-Known Member Licensed User Longtime User Nov 5, 2020 #1 Hi there, I do not know bidirecitonal languages like Arabic but one of my users ask me to add support for these languages. If TextArea does not support this, is it possible to use WebView with a <textarea> to serve as a text editor?
Hi there, I do not know bidirecitonal languages like Arabic but one of my users ask me to add support for these languages. If TextArea does not support this, is it possible to use WebView with a <textarea> to serve as a text editor?
Erel B4X founder Staff member Licensed User Longtime User Nov 5, 2020 #2 TextArea supports it. You can also switch your app orientation to be right to left. Upvote 0
xulihang Well-Known Member Licensed User Longtime User Nov 5, 2020 #3 Thanks. I set the font to Arial and the nodeOrientation to RIGHT_TO_LEFT and it works. B4X: Copy Dim enum1 As EnumClass enum1.Initialize("javafx.geometry.NodeOrientation") Dim jo As JavaObject=sourceTextArea jo.RunMethod("setNodeOrientation",Array(enum1.ValueOf("RIGHT_TO_LEFT"))) Upvote 0
Thanks. I set the font to Arial and the nodeOrientation to RIGHT_TO_LEFT and it works. B4X: Copy Dim enum1 As EnumClass enum1.Initialize("javafx.geometry.NodeOrientation") Dim jo As JavaObject=sourceTextArea jo.RunMethod("setNodeOrientation",Array(enum1.ValueOf("RIGHT_TO_LEFT")))