Plugin Directory

Changeset 2280167


Ignore:
Timestamp:
04/09/2020 12:27:36 PM (6 years ago)
Author:
ferkho
Message:

Editor issue fix

Location:
gift-hunt/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • gift-hunt/trunk/assets/scripts/gifthunt.js

    r2197199 r2280167  
    214214  const requiredEditorFields = ["popup_body", "popup_submit_body", "success_email_body"];
    215215  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
    217229    gifthuntSessionData[requiredField] = currentValue;
    218230
  • gift-hunt/trunk/gifthuntfree.php

    r2197199 r2280167  
    44 * Plugin URI:        https://gifthuntplugin.com
    55 * Description:       Online treasure hunt on your WordPress site
    6  * Version:           1.0.0
     6 * Version:           1.0.1
    77 * Author:            Ferenc Forgacs - @feriforgacs
    88 * Author URI:        https://feriforgacs.me
  • gift-hunt/trunk/readme.txt

    r2197199 r2280167  
    99Donate link: https://www.paypal.me/feriforgacs/5usd
    1010Requires at least: 4.1
    11 Tested up to: 5.3
    12 Stable tag: 1.0.0
    13 Version: 1.0.0
     11Tested up to: 5.4
     12Stable tag: 1.0.1
     13Version: 1.0.1
    1414Requires PHP: 5.6.20
    1515Text Domain: gifthuntfree
     
    206206== Changelog ==
    207207
     208= 1.0.1 =
     209* Bug fix: Can't create or update a session when text editor is active
     210
    208211= 1.0 =
    209212* Initial release
Note: See TracChangeset for help on using the changeset viewer.