WordPress.org

Make WordPress Core


Ignore:
Timestamp:
04/13/2014 12:22:56 AM (6 years ago)
Author:
azaozz
Message:

RTL for TinyMCE:

  • Add _dir: 'rtl' to the TinyMCE translation object.
  • Fix editor.css for RTL.
  • Fix the Edit and Delete buttons position for wpview and images.
  • For _mce_set_direction(), update documentation and fix adding the 'ltr' button.

Fixes #27773

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/class-wp-editor.php

    r28091 r28094  
    982982        $baseurl = self::$baseurl;
    983983        $mce_locale = self::$mce_locale;
     984
     985        // Set direction
     986        if ( is_rtl() ) {
     987            $mce_translation['_dir'] = 'rtl';
     988        }
    984989
    985990        /**
Note: See TracChangeset for help on using the changeset viewer.