Categories
Software and Programming

Silly WordPress Plugin: Editor Directionality Button

Here’s a simple (trivial, in fact) plugin for Wordpress that adds a button to the visual editor for setting the text direction of a paragraph.

Here’s a simple (trivial, in fact) plugin for WordPress that adds a button to the visual editor for setting the text direction of a paragraph.

This button is already enabled in versions of WordPress localized to a bidi language, like Hebrew. You only need to install my plugin if you’re using (say) an English version of WordPress, but still want to include blocks of right-to-left ordered text in your posts.

To Install, download this file: editor directionality button version 0.1 (zip), unzip its contents  (a single PHP file called editor-dir-button.php), upload it to your plugins directory, and enable via the plugins control panel.

Tested in WordPress 2.6.3, WordPress 2.7

Add the TinyMCE editor directionality control
Add the TinyMCE editor directionality control

הינה פלאגין פשוט (טריוויאלי, למעשה) לוורדפרס, שמוסיף כפתור כיווניות לעורך הויזואלי.

כפתור הכיווניות מוצג בגירסאות של וורדפרס שעברו התאמה לשפות דו-כיווניות (כמו עברית). את הפלאגין הזה אתם צריכים רק אם אתם עובדים עם וורדפרס לועזי אבל רוצים להכניס לפוסטים בלוקים של טקסט שמאורגן מימין לשמאל.

בכדי להתקין: הורידו את קובץ ה-ZIP הזה, editor directionality button version 0.1, והעלו את תוכנו (קובץ PHP בודד בשם editor-dir-button.php) לתיקיית ה-plugins שבהתקנת הוורדפרס שלכם. הפעילו אותו בעמוד ניהול ה-plugins.

נבדק ב: וורדפרס 2.6.3, וורדפרס 2.7

9 replies on “Silly WordPress Plugin: Editor Directionality Button”

Weeeeeeeeeeeee!

I wonder how long this has been so while I was too busy using the Heb UI to notice the change.

As my esteemed colleague remarked, reading your blog pays off.

See ya both tonight.

i am trying to get a hebrew plugin for my wordpress blog in english can anyone help me? I assume there is one if there is a plug in for a rtl button

Comments are closed.