Changeset 1392298
- Timestamp:
- 04/11/2016 06:23:12 PM (10 years ago)
- Location:
- wp-rtl
- Files:
-
- 8 added
- 2 edited
-
assets (added)
-
assets/banner-772x250.png (added)
-
assets/icon-128x128.png (added)
-
assets/icon-256x256.png (added)
-
assets/screenshot-1.png (added)
-
assets/screenshot-2.png (added)
-
assets/screenshot-3.png (added)
-
trunk/readme.txt (modified) (3 diffs)
-
trunk/wp-rtl.css (added)
-
trunk/wp-rtl.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wp-rtl/trunk/readme.txt
r1167523 r1392298 2 2 Contributors: fduraibi 3 3 Donate link: 4 Tags: rtl, ltr, wysiwyg, formatting, tinymce, write, edit, post 4 Tags: rtl, ltr, wysiwyg, formatting, tinymce, write, edit, post, arabic, hebrew, persian, directionality, direction, multilingual, multilanguage 5 5 Requires at least: 2.6 6 Tested up to: 4. 2.27 Stable tag: 0.36 Tested up to: 4.5 7 Stable tag: 1.0 8 8 9 9 Adds two buttons to the TinyMCE editor to enable writing text in Left to Right (LTR) and Right to Left (RTL) directions. … … 11 11 == Description == 12 12 13 This plugin enables the text directions functionalitythat exist already in the original TinyMCE editor which allow writing texts in Left-to-Right and Right-to-Left directions in the same post (or page) for languages like Arabic, Persian and Hebrew.13 This plugin enables the text directions plugin that exist already in the original TinyMCE editor which allow writing texts in Left-to-Right and Right-to-Left directions in the same post (or page) for languages like Arabic, Persian and Hebrew. 14 14 15 15 اضافة زرارين لشريط التحرير لتمكين تحويل النص للقرأة من اليمين لليسار مثل اللغة العربية والفارسية والعبرية … … 30 30 == Changelog == 31 31 32 * 1.0 Fix for button styling due to WP inconsistent change of style 32 33 * 0.3 Fixed for WP 3.9 33 34 * 0.2 Fixed compatibility issue with wordpress 2.8 -
wp-rtl/trunk/wp-rtl.php
r896973 r1392298 1 1 <?php 2 2 /* 3 Plugin Name: WP-RTL 4 Plugin URI: http://www.fadvisor.net/blog/2008/10/wp-rtl/ 5 Description: Adds two buttons to the TinyMCE editor to enable writing text in Left to Right (LTR) and Right to Left (RTL) directions. 6 Version: 0.3 7 Author: Fahad Alduraibi 8 Author URI: http://www.fadvisor.net/blog/ 9 */ 10 /* 11 Developed 2008 Fahad Alduraibi (email : fduraibi (at) gmail.com) 3 * Plugin Name: WP-RTL 4 * Plugin URI: http://www.fadvisor.net/blog/2008/10/wp-rtl/ 5 * Description: Adds two buttons to the TinyMCE editor to enable writing text in Left to Right (LTR) and Right to Left (RTL) directions. 6 * Version: 1.0 7 * License: GPLv3 8 * Author: Fahad Alduraibi 9 * Author URI: http://www.fadvisor.net/blog/ 12 10 13 This program is free software; you can redistribute it and/or modify14 it under the terms of the GNU General Public License as published by15 the Free Software Foundation; either version 2 of the License, or16 any later version.17 11 18 This program is distributed in the hope that it will be useful, 19 but WITHOUT ANY WARRANTY; without even the implied warranty of 20 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 21 GNU General Public License for more details. 12 Copyright (C) 2016 Fahad Alduraibi 22 13 23 You should have received a copy of the GNU General Public License 24 along with this program; if not, write to the Free Software 25 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 14 This program is free software: you can redistribute it and/or modify 15 it under the terms of the GNU General Public License as published by 16 the Free Software Foundation, either version 3 of the License, or 17 any later version. 18 19 This program is distributed in the hope that it will be useful, 20 but WITHOUT ANY WARRANTY; without even the implied warranty of 21 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 22 GNU General Public License for more details. 23 24 You should have received a copy of the GNU General Public License 25 along with this program. If not, see <http://www.gnu.org/licenses/>. 26 26 */ 27 27 … … 36 36 add_filter( "mce_buttons", "tinymce_bidi_buttons" ); 37 37 } 38 39 wp_register_style( 'wp-rtl-icon-fix', plugin_dir_url( __FILE__ ) . 'wp-rtl.css' ); 40 38 41 } 39 42 function tinymce_bidi_buttons($buttons) { 43 wp_enqueue_style( 'wp-rtl-icon-fix' ); 40 44 array_push($buttons, "separator", "ltr", "rtl"); 41 45 return $buttons; … … 50 54 return $plugin_array; 51 55 } 52 53 56 ?>
Note: See TracChangeset
for help on using the changeset viewer.