Changeset 28094
- Timestamp:
- 04/13/2014 12:22:56 AM (10 years ago)
- Location:
- trunk/src/wp-includes
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-editor.php
r28091 r28094 982 982 $baseurl = self::$baseurl; 983 983 $mce_locale = self::$mce_locale; 984 985 // Set direction 986 if ( is_rtl() ) { 987 $mce_translation['_dir'] = 'rtl'; 988 } 984 989 985 990 /** -
trunk/src/wp-includes/css/editor.css
r28045 r28094 1852 1852 } 1853 1853 1854 /* @noflip */ 1855 .mce-rtl .mce-flow-layout .mce-flow-layout-item > div { 1856 direction: rtl; 1857 } 1858 1859 /* @noflip */ 1860 .mce-rtl .mce-listbox i.mce-caret { 1861 left: 6px; 1862 } 1863 1854 1864 html:lang(he-il) .rtl .wp-switch-editor, 1855 1865 html:lang(he-il) .rtl .quicktags-toolbar input { -
trunk/src/wp-includes/functions.php
r27855 r28094 2458 2458 * direction set to 'rtl'. 2459 2459 * 2460 * Fills in the 'directionality', 'plugins', and 'theme_advanced_button1' array 2461 * keys. These keys are then returned in the $input array. 2460 * Fills in the 'directionality' setting, enables the 'directionality' plugin, 2461 * and adds the 'ltr' button to 'toolbar1', formerly 'theme_advanced_buttons1' array 2462 * keys. These keys are then returned in the $input (TinyMCE settings) array. 2462 2463 * 2463 2464 * @access private 2464 2465 * @since 2.1.0 2465 2466 * 2466 * @param array $input MCE pluginarray.2467 * @param array $input MCE settings array. 2467 2468 * @return array Direction set for 'rtl', if needed by locale. 2468 2469 */ … … 2471 2472 $input['directionality'] = 'rtl'; 2472 2473 $input['plugins'] .= ',directionality'; 2473 $input['t heme_advanced_buttons1'] .= ',ltr';2474 $input['toolbar1'] .= ',ltr'; 2474 2475 } 2475 2476 -
trunk/src/wp-includes/js/tinymce/plugins/wordpress/plugin.js
r28032 r28094 280 280 if ( editor.getParam( 'directionality' ) === 'rtl' ) { 281 281 bodyClass.push('rtl'); 282 dom.setAttrib( doc.documentElement, 'dir', 'rtl' ); 282 283 } 283 284 -
trunk/src/wp-includes/js/tinymce/plugins/wpeditimage/plugin.js
r27942 r28094 404 404 405 405 function addToolbar( node ) { 406 var rectangle, toolbarHtml, toolbar, toolbarSize,406 var rectangle, toolbarHtml, toolbar, left, 407 407 dom = editor.dom; 408 408 … … 426 426 }, toolbarHtml ); 427 427 428 if ( editor.rtl ) { 429 left = rectangle.x + rectangle.w - 82; 430 } else { 431 left = rectangle.x; 432 } 433 428 434 editor.getBody().appendChild( toolbar ); 429 toolbarSize = dom.getSize( toolbar );430 431 435 dom.setStyles( toolbar, { 432 436 top: rectangle.y, 433 left: rectangle.x437 left: left 434 438 }); 435 439 -
trunk/src/wp-includes/js/tinymce/skins/wordpress/wp-content.css
r28062 r28094 454 454 } 455 455 456 /* rtl */ 457 .rtl .gallery .gallery-item { 458 float: right; 459 } 460 461 .rtl .wpview-wrap .toolbar { 462 left: auto; 463 right: 0; 464 } 465 466 .rtl .wpview-wrap .toolbar div, 467 .rtl #wp-image-toolbar div { 468 margin-left: auto; 469 margin-right: 7px; 470 } 471 456 472 @media print, 457 473 (-o-min-device-pixel-ratio: 5/4),
Note: See TracChangeset
for help on using the changeset viewer.