• Resolved webideavg

    (@webideavg)


    When I try to add a gallery through media editor, I see this error and I can’t add images…
    For me this function is important…

    Uncaught TypeError: Cannot read property ‘on’ of undefined

    <script type=”text/javascript”>
    jQuery(function($) {
    // reset the media library modal tab
    var mlmodal = top.wp.media.editor.get();
    mlmodal.on(‘close’, function() {
    mlmodal.setState(‘insert’);
    });
    });
    </script>

    • This topic was modified 8 years, 8 months ago by webideavg.
Viewing 1 replies (of 1 total)
  • Plugin Contributor Imagely

    (@imagely)

    @webideavg – Is this error being display openly or only in the browser console; and, if this is a console message is also seen in public facing view (although I do not expect it would)? If yes, please share the URL to where this is being seen.

    Otherwise, please send us a Bug Report (https://imagely.com/report-bug/ … please reference this topic) so we can get a better look under the page at your site.

    Please include as many details as you can about your site and the issue at hand so we can move on this as fast as possible.

    Thanks!

    – Cais.

Viewing 1 replies (of 1 total)

The topic ‘Cannot read property ‘on’ of undefined’ is closed to new replies.