Changeset 2138025
- Timestamp:
- 08/12/2019 10:39:21 AM (7 years ago)
- Location:
- wphindi/trunk
- Files:
-
- 4 edited
-
assets/js/block.js (modified) (3 diffs)
-
class/zozuk-transliterator.php (modified) (1 diff)
-
readme.txt (modified) (3 diffs)
-
zozuk-translator.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wphindi/trunk/assets/js/block.js
r2137347 r2138025 27 27 return wp.element.createElement( 28 28 "div", 29 null, 30 props.attributes.content 29 { 30 dangerouslySetInnerHTML : { 31 __html : props.attributes.content 32 } 33 }, 34 null 31 35 ); 32 36 } … … 36 40 render() { 37 41 return React.createElement( 38 ' p',42 'div', 39 43 { 40 id: this.props.ID 44 id: this.props.ID, 45 dangerouslySetInnerHTML : { 46 __html : this.props.attributes.content 47 } 41 48 }, 42 this.props.attributes.content49 null 43 50 ) 44 51 } … … 86 93 } 87 94 }).then(function () { 88 tinymce.get(`${props.ID}`).setContent(89 $('<textarea />').html(props.attributes.content).text()90 );91 95 translate.load(); 92 }); 96 // Remove Older blocks after HTML edit. 97 var block = jQuery(`[data-block=${props.clientId}]`); 98 if(block.children().length == 3){ 99 block.children()[0].remove(); 100 } 101 }); 93 102 } 94 103 } -
wphindi/trunk/class/zozuk-transliterator.php
r2137347 r2138025 5 5 6 6 if ( $hook == 'post-new.php' || $hook == 'post.php' ) { 7 8 7 $this->enqueue_style(); 9 8 $this->enqueue_API_scripts(); -
wphindi/trunk/readme.txt
r2137347 r2138025 1 1 === WPHindi === 2 Author URI: https://www.zozuk.com/ 3 Plugin URI: https://www.zozuk.com/ 2 4 Contributors: zozuk1,sudhanshur 3 Creator's website link: https://www.zozuk.com/4 Tags: wphindi,hindi typing,transliteration,hinglish,english to hindi typing5 Donate link: https://www.zozuk.com/donate/ 6 Tags: Hindi, Typing, Transliteration, Hinglish, Writing 5 7 Requires at least: 5.0 6 8 Tested up to: 5.2 7 9 Requires PHP: 5.6 8 Stable tag: 1.0. 010 Stable tag: 1.0.1 9 11 License: GPLv2 or later 10 12 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 14 16 == Description == 15 17 16 WP Hindi is a beautiful solution to write in Hindi inside WordPress. IT uses Google's Transliterate API to change the script of text. Converting hello -> हेलो. We at Zozuk faced this problem ourselves and had to spend a lot of time using thrid party tools outside WordPress dashboard to type in Hindi. We worked hard to create this solution which not only saves time but also makes typing fun. 17 18 WPHindi is a beautiful solution to write in Hindi inside WordPress editor. It works using Google's Transliterate API to change the script of text. Converting hello -> हेलो . Learn more at [Zozuk.com](https://www.zozuk.com/wphindi/) 19 20 = Type effortlessly = 21 Tired of using third party tools outside WordPress and then copy pasting content? WPHindi solves this problem by giving you the ability to type in Hindi inside your WordPress editor. 22 23 = Flexbile to use = 24 WPHindi supports both Classic as well as Gutenberg editors. 25 * Classic Editor : Just install the plugin and you can start using it. 26 * Gutenberg Editor : WPHindi provides you its own block in the new Gutenberg editor. Select the block and start using it. 27 18 28 == Installation == 19 29 20 Installing the plugin is extremely simple. Just upload the '.zip' file using WordPress's plugin uploader and activate it to start using. 30 Installing the plugin is extremely simple. 31 * Download the plugin from the WordPress repository 32 * Upload the '.zip' file using WordPress's plugin uploader and activate it to start using it. 33 * Use Enable/Disable button inside WordPress editor to enable or disable Hindi typing inside WordPress. 21 34 22 35 == Frequently Asked Questions == 23 36 24 = How do I disable Transliteration = 25 Use the 'Disable Transliteration' to Disable and 'Enable Transliteration' button to enable the plugin functionality. This button is found on the post editor screen. 37 = How do I switch between languages? = 38 Use the 'Disable WPHindi' to Disable and 'Enable WPHindi' button to enable the plugin functionality. This button is found on the post & page editor screen. 39 40 = Can I use this plugin in Classic editor? = 41 Yes. WPHindi fully supports Classic editor. You can type in Hindi inside the Classic WordPress Editor. 42 43 = Can I use this plugin in Block editor? = 44 Yes. WPHindi fully supports the new Block/Gutenberg editor. You can type in Hindi inside the Gutenberg Editor. 26 45 27 46 == Screenshots == … … 31 50 3. Editing in Classic editor 32 51 52 == Upgrade Notice == 53 54 = 1.0.1 = 55 This version has increased compatibility with Gutenberg. 56 33 57 == Changelog == 58 = 1.0.1 = 59 * Tweak: Changed the plugin icon 60 * New: Increased Gutenberg 61 34 62 = 1.0.0 = 35 63 * Official plugin release. -
wphindi/trunk/zozuk-translator.php
r2137347 r2138025 3 3 4 4 Plugin Name: WPHindi 5 Description: Transliterates English text into into Hindi.5 Description: WPHindi let's you type in Hindi inside WordPress. WPHindi helps you save time by letting you type inside the Classic Editor or Gutenberg in Hindi. 6 6 Author: Zozuk 7 7 Author URI: https://www.zozuk.com 8 8 Version: 1.0.0 9 Requires at least: 5. 09 Requires at least: 5.2.2 10 10 11 11 */ … … 16 16 new Zozuk_Transliterator($hook); 17 17 }); 18 register_block_type( 'zozuk/wphindi', array(19 'editor_script' => 'transliterateZozukBlock',20 'render_callback' => function($attr,$content){21 return html_entity_decode($content);22 }23 ) );
Note: See TracChangeset
for help on using the changeset viewer.