Skip to Content

RTL/LTR toggle textarea bookmarklet

whirlpool's picture

Bookmark the following if you want to switch the textareas in a page to a right-to-left direction. This helps when writing Arabic.

أضف الرابط الى علامات الوب فى متصفحك. سوف يقلب الكتابة من اليمين الى اليسار فى أماكن تحرير النصوص. مفيد عند أضافة نعليقات بالعربي.

Update: Now it toggles between the direction of the textarea and uses the DOM to do it, instead of inserting it in the CSS. This also means that it now works on IE too. It switches all the textareas in a page. The bookmarklet produces a harmless JS error in your JS console that is not a big deal. If you can improve on it please do.

RTL/LTR-Toggle

Click on it to test it. Or click ALT+R

Doesn't work with complicated Javascript textareas like Gmail.

Comments

Alaa's picture

بنجرب

يالله نجرب و ان كان konquerer بيتصرف في الموضوع ده لوحده

اوعى وشك دي بتشتغل بجد، أنا شايف دي لازم تنضاف لفرعونيكس

مينفع تعلها بحيث تقلب الاتجاه لعكس الحالي flip/toggle يعني.

Alaa


"context is over-rated. who are you anyway?"

whirlpool's picture

هحاول

أنا بطبش فى الـJavascript ولكن هجرب علشان المدونات مزدوجة اللغة.


phaeronix's picture

js == firefox extension

Maybe you can encapsulate it in a firefox extension. This way a key binding can be attatched to it.

whirlpool's picture

أي خدمة

أي خدمة يا بوب.. :-)


MSameer's picture

ايه يا عم وجع ال

ايه يا عم وجع القلب ده

و مالها Ctrl-L و Ctrl-R بتاعة opera ;-)

whirlpool's picture

access key

طب ما أنا ممكن أعملها accesskey فالـ HTML


MSameer's picture

بس كده مش هاتبقى

بس كده مش هاتبقى لكل الصفحات

whirlpool's picture

Greasmonkey

عليك بـ greasemonkey أو لو فاضى ممكن تعمل extension كاملة


MSameer's picture

ايه وجع القلب ده

ايه وجع القلب ده!!!

على فكر فىه extension معمول

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.


Dr. Radut | blog