[wp-trac] [WordPress Trac] #13070: Add RTL/LTR button to html editor

WordPress Trac wp-trac at lists.automattic.com
Fri Feb 3 19:16:35 UTC 2012


#13070: Add RTL/LTR button to html editor
---------------------------+-----------------------------
 Reporter:  yoavf          |       Owner:
     Type:  enhancement    |      Status:  new
 Priority:  normal         |   Milestone:  Future Release
Component:  Editor         |     Version:
 Severity:  normal         |  Resolution:
 Keywords:  has-patch rtl  |
---------------------------+-----------------------------

Comment (by azaozz):

 Wouldn't it be better to use the `dir="..."` attribute on the textarea to
 change directions (this seems suggested at
 [http://www.w3.org/International/tutorials/bidi-xhtml/ W3.org])?

 Also the current patch works but only because of the back-compat in
 Quicktags. The "new" method of adding buttons is described
 [http://core.trac.wordpress.org/browser/trunk/wp-
 includes/js/quicktags.dev.js#L273 here]. Thinking if we are doing this, it
 should be included in wp_editor() and added automatically when the text
 direction is RTL, similar to the "directionality" plugin for TinyMCE.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/13070#comment:4>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list