関数 _mce_set_direction()
2014/11/27
定義ファイル :/blog/wp-includes/functions.php 13
_mce_set_direction()
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 | /** * Set the localized direction for MCE plugin. * * Will only set the direction to 'rtl', if the WordPress locale has * the text direction set to 'rtl'. * * Fills in the 'directionality' setting, enables the 'directionality' * plugin, and adds the 'ltr' button to 'toolbar1', formerly * 'theme_advanced_buttons1' array keys. These keys are then returned * in the $input (TinyMCE settings) array. * * @since 2.1.0 * @access private * * @param array $input MCE settings array. * @return array Direction set for 'rtl', if needed by locale. */ function _mce_set_direction( $input ) { if ( is_rtl() ) { $input['directionality'] = 'rtl'; $input['plugins'] .= ',directionality'; $input['toolbar1'] .= ',ltr'; } return $input; } |