Changeset 2179008
- Timestamp:
- 10/24/2019 05:47:55 AM (6 years ago)
- Location:
- wphindi/trunk
- Files:
-
- 1 added
- 1 deleted
- 7 edited
-
assets/js/block.js (modified) (1 diff)
-
assets/js/classic-editor.js (modified) (3 diffs)
-
assets/js/transliterate.js (deleted)
-
assets/js/wphindi-writer.js (added)
-
changelog.md (modified) (1 diff)
-
class/zozuk-transliterator.php (modified) (5 diffs)
-
constant.php (modified) (1 diff)
-
readme.txt (modified) (2 diffs)
-
zozuk-translator.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
wphindi/trunk/assets/js/block.js
r2155460 r2179008 91 91 this.Id = "zz-" + props.clientId; 92 92 const editorID = `.${this.Id}`; 93 this.hindiTyping = new transliterator(editorID);93 this.hindiTyping = new WPHindi.writer(editorID); 94 94 } 95 95 render() { -
wphindi/trunk/assets/js/classic-editor.js
r2159114 r2179008 1 var contentTransliterator = null; 2 var contentTextTransliterator = new transliterator('#content') 3 var titleTransliterator = new transliterator('#title'); 1 (() => { 2 var contentTransliterator = null; 3 contentTextTransliterator = new WPHindi.writer('#content', true) 4 titleTransliterator = new WPHindi.writer('#title', true); 5 6 contentTextTransliterator.load(); 7 titleTransliterator.load(); 4 8 5 9 var transliterationStatus = true; 6 7 contentTextTransliterator.load(transliterationStatus);8 titleTransliterator.load(transliterationStatus);9 10 10 11 … … 37 38 jQuery( document ).on('tinymce-editor-init',function(){ 38 39 if(contentTransliterator === null){ 39 contentTransliterator = new transliterator('#content_ifr');40 contentTransliterator.load( transliterationStatus);40 contentTransliterator = new WPHindi.writer('#content_ifr', transliterationStatus); 41 contentTransliterator.load(); 41 42 } 42 43 }); … … 46 47 transliterateToggle.addEventListener('click',toggleTransliterator); 47 48 } 49 })() -
wphindi/trunk/changelog.md
r2159114 r2179008 1 1 # Changelog 2 2 All notable changes to this project will be documented in this file. 3 4 ## [2.0.0] - 24-Oct-19 5 ### Added 6 * URLs, emails and domain names etc will not be transliterated. 7 * Puranviram support at the end of sentence. 8 9 ## Changed 10 * Migrated to WPHindi_Writer from transliterator. 11 12 ## Removed 13 * Transliterator class. 3 14 4 15 ## [1.4.1] - 19-Sept-19 -
wphindi/trunk/class/zozuk-transliterator.php
r2153598 r2179008 7 7 $this->enqueue_style(); 8 8 $this->enqueue_API_scripts(); 9 $this->enqueue_editor_script(); 9 10 $this->setup_classic_editor(); 10 11 $this->setup_block_editor(); … … 15 16 16 17 private function setup_classic_editor(){ 17 18 wp_enqueue_script(19 'transliterateZozuk',20 plugin_dir_url(__DIR__).'assets/js/transliterate.js',21 'googleTransliterateAPI',22 WPHINDI_VERSION,23 true24 );25 18 wp_enqueue_script( 26 19 'transliterateClassicEditor', 27 20 plugin_dir_url(__DIR__).'assets/js/classic-editor.js', 28 ' googleTransliterateAPI',21 'wphindi-writer', 29 22 WPHINDI_VERSION, 30 23 true … … 46 39 'transliterateZozukBlock', 47 40 plugin_dir_url(__DIR__).'assets/js/block.js', 48 ['googleTransliterateAPI',' transliterateZozuk','wp-blocks','wp-element','wp-editor'],41 ['googleTransliterateAPI','wp-blocks','wp-element','wp-editor'], 49 42 WPHINDI_VERSION, 50 43 true … … 56 49 private function enqueue_API_scripts(){ 57 50 58 wp_ enqueue_script(51 wp_register_script( 59 52 'googleTransliterateAPI', 60 53 plugin_dir_url(__DIR__).'assets/js/api.js', 61 54 null, 62 WPHINDI_VERSION, 63 true 55 WPHINDI_VERSION 64 56 ); 65 57 … … 82 74 83 75 } 76 77 private function enqueue_editor_script(){ 78 wp_enqueue_script( 79 'wphindi-writer', 80 plugin_dir_url(__DIR__).'assets/js/wphindi-writer.js', 81 'googleTransliterateAPI', 82 WPHINDI_VERSION 83 ); 84 } 84 85 } -
wphindi/trunk/constant.php
r2159114 r2179008 5 5 define('WPHINDI_CORE_URL', plugin_dir_url(__FILE__)); 6 6 7 define('WPHINDI_VERSION', " 1.4.1");7 define('WPHINDI_VERSION', "2.0.0"); -
wphindi/trunk/readme.txt
r2159114 r2179008 15 15 == Description == 16 16 WPHindi is a beautiful solution that lets you write in Hindi inside your WordPress editor. It changes the script of the text which means when you type 'Hello' it becomes 'हेलो'. You can easily type in Hindi and when you want to switch language, you can do that with the click of a button. Learn more at [Zozuk.com](https://www.zozuk.com/wphindi/) 17 18 == What's New == 19 We've been working very hard to improve the typing experience that WPHindi provides. v2 comes with a revamped core supporting complex expression and intelligently decides which words and expressions should be transliterated. Plus we've added "।" puranviram support. 17 20 18 21 = Type effortlessly = … … 51 54 52 55 == Changelog == 56 = 2.0.0 = 57 * ReVamped core. 58 * Improved typing experience. 59 * Emails, Dates, URLs and domain names will not be transliterated. 60 * Added puranviram support. 61 53 62 = 1.4.1 = 54 63 * Fixed Classic Editor Toggle button not working. -
wphindi/trunk/zozuk-translator.php
r2159114 r2179008 6 6 Author: Zozuk 7 7 Author URI: https://www.zozuk.com 8 Version: 1.4.18 Version: 2.0.0 9 9 Requires at least: 5.0 10 10
Note: See TracChangeset
for help on using the changeset viewer.