Ticket #27773: 27773.1.patch
File 27773.1.patch, 4.2 KB (added by , 10 years ago) |
---|
-
src/wp-includes/class-wp-editor.php
982 982 $baseurl = self::$baseurl; 983 983 $mce_locale = self::$mce_locale; 984 984 985 // Set direction 986 if ( is_rtl() ) { 987 $mce_translation['_dir'] = 'rtl'; 988 } 989 985 990 /** 986 991 * Filter translated strings prepared for TinyMCE. 987 992 * -
src/wp-includes/css/editor.css
1851 1851 font-family: Tahoma, sans-serif; 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 { 1856 1866 font-family: Arial, sans-serif; -
src/wp-includes/functions.php
2457 2457 * Will only set the direction to 'rtl', if the WordPress locale has the text 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 */ 2469 2470 function _mce_set_direction( $input ) { … … 2470 2471 if ( is_rtl() ) { 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 2476 2477 return $input; -
src/wp-includes/js/tinymce/plugins/wordpress/plugin.js
279 279 280 280 if ( editor.getParam( 'directionality' ) === 'rtl' ) { 281 281 bodyClass.push('rtl'); 282 dom.setAttrib( doc.documentElement, 'dir', 'rtl' ); 282 283 } 283 284 284 285 if ( env.ie ) { -
src/wp-includes/js/tinymce/plugins/wpeditimage/plugin.js
403 403 } 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 409 409 removeToolbar(); … … 425 425 'contenteditable': false 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 436 440 toolbarActive = true; -
src/wp-includes/js/tinymce/skins/wordpress/wp-content.css
453 453 outline: 0; 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), 458 474 (-webkit-min-device-pixel-ratio: 1.25),