• When accessing the admin pages I’m seeing the following error on my browser console:

    Uncaught ReferenceError: tinymce is not defined

    I think the problem is in admin/js/tinymce.min.js where the following appears:

    const e=tinymce;
Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Marek Dědič

    (@marekdedic)

    Hmm, that is strange, I am not able to replicate this.

    Which pages does this happen on? Do you have the classic editor plugin? Or any other site builder or plugin that changes the page editor?

    Thanks for the report,
    Marek

    Thread Starter peter8nss

    (@peter8nss)

    It occurs when I access “Basic options” /wp-admin/admin.php?page=sgdg_basic.

    I’m using Firefox to access my site and the error is showing up when I go to Firefox “Console” log (https://firefox-source-docs.mozilla.org/devtools-user/browser_console/index.html). So not something visible directly to a user.

    I’m not using any page builder.

    Plugin Author Marek Dědič

    (@marekdedic)

    Hmm, I don’t see that issue in the browser console with the classic plugin turned on or off :/ Maybe try re-installing the latest version to see if itsn’t some cache issue? (Unlikely, but still…) Are you using any optimization/caching plugins? Those like to interfere with things as well…

    Thanks!

    Thread Starter peter8nss

    (@peter8nss)

    Looking at the code for admin/js/tinymce.min.js (run through a pretty printer to make it easier to read) isn’t the problem the last line of the code shown below. Should tinymce be in quotes? Doing that removes the browser console error I was seeing.

    jQuery(function($) {
    (() => {
    “use strict”;
    var t = {
    n: e => {
    var i = e && e.__esModule ? () => e.default : () => e;
    return t.d(i, {
    a: i
    }), i
    },
    d: (e, i) => {
    for (var n in i) t.o(i, n) && !t.o(e, n) && Object.defineProperty(e, n, {
    enumerable: !0,
    get: i[n]
    })
    },
    o: (t, e) => Object.prototype.hasOwnProperty.call(t, e)
    };
    const e = tinymce;

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Error in tinymce.min.js’ is closed to new replies.