mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-07-01 15:50:09 +00:00
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:
@@ -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;
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user