Changeset 2417443
- Timestamp:
- 11/12/2020 07:37:09 PM (5 years ago)
- Location:
- wysiwyg-editor-for-contact-form-7
- Files:
-
- 22 added
- 4 edited
-
tags/1.0.1 (added)
-
tags/1.0.1/assets (added)
-
tags/1.0.1/assets/js (added)
-
tags/1.0.1/assets/js/main.frontend.js (added)
-
tags/1.0.1/bootloader.php (added)
-
tags/1.0.1/contact-form-7-wysiwyg.php (added)
-
tags/1.0.1/includes (added)
-
tags/1.0.1/includes/activator.php (added)
-
tags/1.0.1/includes/autoloader.php (added)
-
tags/1.0.1/includes/modules (added)
-
tags/1.0.1/includes/modules/admin.php (added)
-
tags/1.0.1/includes/modules/frontend.php (added)
-
tags/1.0.1/includes/plugin.php (added)
-
tags/1.0.1/index.php (added)
-
tags/1.0.1/languages (added)
-
tags/1.0.1/languages/cf7-wysiwyg-en_US.mo (added)
-
tags/1.0.1/languages/cf7-wysiwyg-en_US.po (added)
-
tags/1.0.1/languages/cf7-wysiwyg.pot (added)
-
tags/1.0.1/readme.txt (added)
-
tags/1.0.1/templates (added)
-
tags/1.0.1/templates/generator.php (added)
-
tags/1.0.1/uninstall.php (added)
-
trunk/assets/js/main.frontend.js (modified) (4 diffs)
-
trunk/contact-form-7-wysiwyg.php (modified) (1 diff)
-
trunk/includes/modules/frontend.php (modified) (1 diff)
-
trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wysiwyg-editor-for-contact-form-7/trunk/assets/js/main.frontend.js
r2416820 r2417443 7 7 }); 8 8 9 function wpcf7_wysiwyg_register_events() { 10 11 $('form.wpcf7-form').each(function() { 12 $(this).submit(function(e) { 13 $(this).find('.wpcf7-wysiwyg-container').each(function() { 14 var id = $(this).find('textarea.wysiwyg').attr('id'); 15 $(this).find('textarea.wysiwyg').text(tinymce.editors[id].getContent()); 16 }); 17 }); 18 }); 19 9 function wpcf_wysiwyg_update_content(editor_id, content) { 10 $('textarea.wysiwyg#' + editor_id).text(content); 20 11 } 21 12 … … 27 18 plugins: 'charmap colorpicker compat3x directionality fullscreen hr image lists media paste tabfocus textcolor wordpress wpautoresize wpdialogs wpeditimage wpemoji wpgallery wplink wptextpattern wpview', 28 19 toolbar1: 'formatselect bold italic | bullist numlist | blockquote | alignleft aligncenter alignright | link unlink | wp_more fullscreen wp_adv', 29 toolbar2: 'strikethrough, hr, forecolor, pastetext, removeformat, charmap, outdent, indent, undo, redo, wp_help' , 20 toolbar2: 'strikethrough, hr, forecolor, pastetext, removeformat, charmap, outdent, indent, undo, redo, wp_help', 21 setup: function(editor) { 22 editor.on('keyup', function(e) { 23 wpcf_wysiwyg_update_content(editor.id, editor.getContent()); 24 }); 25 } 30 26 }, 31 quicktags: true 27 quicktags: true, 28 mediaButtons: true 32 29 }); 33 30 … … 38 35 wp.editor.remove(id); 39 36 wpcf7_wysiwyg(id); 40 41 wpcf7_wysiwyg_register_events();42 37 43 38 } … … 56 51 }); 57 52 58 wpcf7_wysiwyg_register_events();59 60 53 } 61 54 62 55 // Expose functions 63 window.wpcf7_wysiwyg_init = wpcf7_wysiwyg_init;64 window.wpcf7_wysiwyg_init_all = wpcf7_wysiwyg_init_all;56 window.wpcf7_wysiwyg_init = wpcf7_wysiwyg_init; 57 window.wpcf7_wysiwyg_init_all = wpcf7_wysiwyg_init_all; 65 58 66 59 })(window, jQuery); -
wysiwyg-editor-for-contact-form-7/trunk/contact-form-7-wysiwyg.php
r2417374 r2417443 10 10 * Plugin URI: https://github.com/DimChtz/contact-form-7-wysiwyg 11 11 * Description: Adds WYSIWYG Editor field for Contact Form 7 12 * Version: 1.0. 112 * Version: 1.0.2 13 13 * Author: Dimitris Chatzis 14 14 * Author URI: https://github.com/DimChtz -
wysiwyg-editor-for-contact-form-7/trunk/includes/modules/frontend.php
r2417374 r2417443 75 75 } 76 76 77 wp_enqueue_media(); 77 78 wp_enqueue_editor(); 78 79 -
wysiwyg-editor-for-contact-form-7/trunk/readme.txt
r2417374 r2417443 6 6 Tested up to: 5.5 7 7 Requires PHP: 5.6 8 Stable Tag: 1.0. 18 Stable Tag: 1.0.2 9 9 License: GPLv2 or later 10 10 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 34 34 == Changelog == 35 35 36 = 1.0.2 = 37 * Fixed tinymce editor events 38 * Added media upload button 39 36 40 = 1.0.1 = 37 41 * Fixed autoloader issue
Note: See TracChangeset
for help on using the changeset viewer.