Changeset 2280167
- Timestamp:
- 04/09/2020 12:27:36 PM (6 years ago)
- Location:
- gift-hunt/trunk
- Files:
-
- 3 edited
-
assets/scripts/gifthunt.js (modified) (1 diff)
-
gifthuntfree.php (modified) (1 diff)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
gift-hunt/trunk/assets/scripts/gifthunt.js
r2197199 r2280167 214 214 const requiredEditorFields = ["popup_body", "popup_submit_body", "success_email_body"]; 215 215 requiredEditorFields.forEach(requiredField => { 216 const currentValue = tinyMCE.editors[requiredField].getContent(); 216 let currentValue = ""; 217 if(tinyMCE.editors[requiredField]){ 218 /** 219 * Visual editor 220 */ 221 currentValue = tinyMCE.editors[requiredField].getContent(); 222 } else { 223 /** 224 * Text editor 225 */ 226 currentValue = document.querySelector(`#${requiredField}`).value; 227 } 228 217 229 gifthuntSessionData[requiredField] = currentValue; 218 230 -
gift-hunt/trunk/gifthuntfree.php
r2197199 r2280167 4 4 * Plugin URI: https://gifthuntplugin.com 5 5 * Description: Online treasure hunt on your WordPress site 6 * Version: 1.0. 06 * Version: 1.0.1 7 7 * Author: Ferenc Forgacs - @feriforgacs 8 8 * Author URI: https://feriforgacs.me -
gift-hunt/trunk/readme.txt
r2197199 r2280167 9 9 Donate link: https://www.paypal.me/feriforgacs/5usd 10 10 Requires at least: 4.1 11 Tested up to: 5. 312 Stable tag: 1.0. 013 Version: 1.0. 011 Tested up to: 5.4 12 Stable tag: 1.0.1 13 Version: 1.0.1 14 14 Requires PHP: 5.6.20 15 15 Text Domain: gifthuntfree … … 206 206 == Changelog == 207 207 208 = 1.0.1 = 209 * Bug fix: Can't create or update a session when text editor is active 210 208 211 = 1.0 = 209 212 * Initial release
Note: See TracChangeset
for help on using the changeset viewer.