Issue with dynamically created editors since plugin version 1.0.249

#1075333
  • Resolved Heiko
    Rank Math free

    Hello,

    I’ve developed a custom post type in my project that includes dynamically generated editors.
    Since plugin version 1.0.249, this functionality no longer works as expected. When attempting to create the editors, an error is triggered by the file admin/classic.js within the plugin.

    Fehler - Konsole

    The issue also appears in version 1.0.247, where the error is thrown on page load – however, the dynamic editor creation still works in that version. In version 1.0.249, editor creation fails entirely.
    As a temporary workaround, I’ve added a dummy editor in my code that prevents the error from occurring. This allows the dynamic creation of editors to work again.

    Here’s the relevant workaround code snippet from my file:


    document.addEventListener("DOMContentLoaded", function () {
    if (typeof tinymce !== "undefined") {
    // Notwendiges Editors-Array sicherstellen
    if (!tinymce.editors) {
    tinymce.editors = [];
    }

    // Dummy-Editor für 'content', falls nicht vorhanden
    if (!tinymce.editors.content) {
    tinymce.editors.content = {
    on: function () {},
    save: function () {}
    };
    }

    // Dummy-Editor für 'excerpt', falls nicht vorhanden
    if (!tinymce.editors.excerpt) {
    tinymce.editors.excerpt = {
    on: function () {},
    save: function () {}
    };
    }
    }
    });

    Is this a known issue, and is there a fix or update planned for an upcoming version?

    Best regards

    Heiko

Viewing 1 replies (of 1 total)
  • Hello,

    We apologize for the issue you are facing with the dynamically created editors since the plugin version 1.0.249. It seems that this is a specific conflict that may have arisen due to changes in the plugin’s JavaScript files, particularly in admin/classic.js.

    While we currently do not have specific information regarding a fix or update planned for this issue, we appreciate you sharing your workaround code snippet. This can be helpful for others experiencing similar problems.

    For now, we recommend keeping an eye on future updates of the Rank Math plugin, as our development team is continuously working to improve functionality and resolve any issues that arise. If you have further details or error messages, please reply to this ticket, and a human agent from our support team will assist you further.

    Thank you for your understanding and for bringing this to our attention!

    Sources:
    Fatal Error Happening on Some Installations After 1.0.49 Update » Rank Math

    This is an automated reply from Rank Math Support Bot. If you need further assistance, please reply to this topic and a human support agent will reply to you shortly.

    Hello,

    Since we did not hear back from you for 15 days, we are assuming that you found the solution. We are closing this support ticket.

    If you still need assistance or any other help, please feel free to open a new support ticket, and we will be more than happy to assist.

    Thank you.

Viewing 1 replies (of 1 total)

The ticket ‘Issue with dynamically created editors since plugin version 1.0.249’ is closed to new replies.