RTL support. Props mani_monaj. #3136

git-svn-id: https://develop.svn.wordpress.org/trunk@4201 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren
2006-09-21 00:34:34 +00:00
parent df3c1a520e
commit ae2a89aa46
3 changed files with 140 additions and 0 deletions

View File

@@ -1159,4 +1159,28 @@ function wp_die($message, $title = '') {
die();
}
function _mce_set_direction() {
global $wp_locale;
if ('rtl' == $wp_locale->text_direction)
echo 'directionality : "rtl" ,';
}
function _mce_load_rtl_plugin($input) {
global $wp_locale;
if ('rtl' == $wp_locale->text_direction)
$input[] = 'directionality';
return $input;
}
function _mce_add_direction_buttons($input) {
global $wp_locale;
if ('rtl' == $wp_locale->text_direction) {
$new_buttons = array('separator', 'ltr', 'rtl');
$input = array_merge($input, $new_buttons);
}
return $input;
}
?>