Plugin Directory

Changeset 3306241


Ignore:
Timestamp:
06/04/2025 08:52:34 AM (10 months ago)
Author:
mailbluster
Message:

update version to 2.2.4 and ensure compatibility with WP 6.8.1

Location:
mailbluster4wp
Files:
48 added
3 edited

Legend:

Unmodified
Added
Removed
  • mailbluster4wp/trunk/README.txt

    r3215915 r3306241  
    44Tags: Email Marketing, Newsletter, AmazonSES, Bulk Email
    55Requires at least: 3.0.1
    6 Tested up to: 6.7.1
     6Tested up to: 6.8.1
    77Requires PHP: 5.6
    8 Stable tag: 2.2.3
     8Stable tag: 2.2.4
    99License: GPLv2 or later
    1010License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    7373
    7474== Changelog ==
     75
     76= 2.2.4 =
     77* WP version 6.8.1 compatible.
     78* Fix: Improved External dependency initialization.
    7579
    7680= 2.2.3 =
  • mailbluster4wp/trunk/admin/js/mailbluster4wp-admin.js

    r2918522 r3306241  
    4949
    5050    var toolbarOptions = [['bold', 'italic', 'underline', 'link']];
    51     var quill = new Quill('#mbq_editor', {
    52       modules: {
    53         toolbar: toolbarOptions,    // Snow includes toolbar by default
    54       },
    55       formats: {
    56         bold: false
    57       },
    58       theme: 'snow'
     51    const observer = new MutationObserver(() => {
     52      const editorContainer = document.getElementById("mbq_editor");
     53      if (editorContainer) {
     54        observer.disconnect();
     55
     56        const quill = new Quill('#mbq_editor', {
     57          modules: {
     58            toolbar: toolbarOptions,    // Snow includes toolbar by default
     59          },
     60          formats: {
     61            bold: false
     62          },
     63          theme: 'snow'
     64        });
     65        const tooltip = quill.theme.tooltip;
     66        const input = tooltip.root.querySelector("input[data-link]");
     67        input.dataset.link = `eg: ${document.location.origin}`;
     68
     69        const consentTextarea = $("#consent_textarea");
     70        const builder_form_checkbox_label = $("#mb4wp_builder_form_checkbox_label");
     71        quill.on('text-change', function () {
     72          const p = Array.from(document.querySelector(".ql-editor").children);
     73          const content = p.map(el => el.innerHTML);
     74          consentTextarea.val(`${content.map(el => `<p>${el}</p>`).join("")}`);
     75          builder_form_checkbox_label.html(`${content.map(el => `<p>${el}</p>`).join("")}`);
     76        });
     77      }
    5978    });
    60     const tooltip = quill.theme.tooltip;
    61     const input = tooltip.root.querySelector("input[data-link]");
    62     input.dataset.link = `eg: ${ document.location.origin }`;
    63 
    64     const consentTextarea = $("#consent_textarea");
    65     const builder_form_checkbox_label = $("#mb4wp_builder_form_checkbox_label");
    66     quill.on('text-change', function() {
    67       const p = Array.from(document.querySelector(".ql-editor").children);
    68       const content = p.map(el => el.innerHTML);
    69       consentTextarea.val(`${content.map(el=> `<p>${el}</p>`).join("")}`);
    70       builder_form_checkbox_label.html(`${content.map(el=> `<p>${el}</p>`).join("")}`);
    71     });
     79    observer.observe(document.body, { childList: true, subtree: true });
    7280  });
    7381})(jQuery);
  • mailbluster4wp/trunk/mailbluster4wp.php

    r3215915 r3306241  
    1717 * Plugin URI:        https://mailbluster.com
    1818 * Description:       A free and simple WordPress plugin for MailBluster which provides different methods to create and include subscription forms into WordPress pages or posts by utilizing AmazonSES service.
    19  * Version:           2.2.3
    20  * Tested up to:        6.7.1
     19 * Version:           2.2.4
     20 * Tested up to:        6.8.1
    2121 * Author:            MailBluster
    2222 * Author URI:        https://mailbluster.com
     
    3737 * Rename this for your plugin and update it as you release new versions.
    3838 */
    39 define('MAILBLUSTER4WP_VERSION', '2.2.3');
     39define('MAILBLUSTER4WP_VERSION', '2.2.4');
    4040
    4141/**
Note: See TracChangeset for help on using the changeset viewer.