Support

Account

Home Forums Backend Issues (wp-admin) JS error on v5

Solved

JS error on v5

  • Plugin is breaking when there’s no tinyMCE in an admin screen.

    Error is Uncaught ReferenceError: tinymce is not defined due to line 6026 in js/input.js .

    You shouldn’t assume there’s always a tinymce instance.

  • I get the same bug on each page with ACF metabox.
    On my site, tinyMCE is disabled and I use Markdown instead with Jetpack module.

    WordPress 4
    ACF 5.0.8

  • Simple fix, replace

    if( typeof tinyMCEPreInit === 'undefined' )

    for

    if( typeof tinyMCEPreInit === 'undefined' || typeof tinymce === 'undefined' )

  • Thanks for your help. I’ve open a support ticket with a link to your post.
    In v5.1.3, the code has been added to the plugin 🙂

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

The topic ‘JS error on v5’ is closed to new replies.