-
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.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
The ticket ‘Issue with dynamically created editors since plugin version 1.0.249’ is closed to new replies.