• Resolved Marco Chiesi

    (@marcochiesi)


    Hi there,
    I am the author of Black Studio TinyMCE Widget, a popular plugin that provides the ability to use the TinyMCE visual editor to edit widgets.
    After a request by user I am trying to let the plugin play nicely with NextGEN Gallery. I’ve been able to let it work on the widgets admin panel but not on the Customizer, where I get the following javascript error, when I try to add/edit a gallery in the editor.
    Uncaught TypeError: Cannot read property 'register_child' of undefined
    in file nextgen-gallery/products/photocrati_nextgen/modules/frame_communication/static/frame_event_publisher.js line 61.

    It looks like the frame communication script has to deal with an unexpected situation (the Customize view). Could you assist on this?

    You may get the current dev version of the Black Studio TinyMCE Widget plugin from the GitHub repo (the current stable version does not have the support for NextGEN gallery yet).

    P.S. Could you also provide a way (i.e. hook) to control in which admin pages the NextGEN static scripts/style should be loaded? Actually it’s hardcoded to post|post-new.php, but users may need the visual editor even elsewhere (i.e. widgets.php).

    Thank you.

    https://www.ads-software.com/plugins/nextgen-gallery/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Benjamin

    (@benjaminowens)

    Sorry Marco, our “Attach To Post” interface just isn’t built to run anywhere but post/post-new.php

    Thread Starter Marco Chiesi

    (@marcochiesi)

    Hi Benjamin,
    in the meantime I was able to solve the problem, without the need to alter NextGEN Gallery source code.
    The next version of Black Studio TinyMCE Widget, which is going to be released shortly, will have full support for NextGEN Gallery features, even in Cutomizer.
    By the way, it looks like your “Attach to Post” interface works fine even outside of the post/post-new.php pages. The issue I reported was not referring directly to the “Attach to Post”, which was already working fine in widgets.php, but to the “Frame Event Communication” module which was not working in the Customizer because of the frame structure of that screen, but I found a workaround for that.

    Plugin Contributor photocrati

    (@photocrati)

    @marco Chiesi – Thanks for the update on this!! We’ll be looking forward to your next release.

    – Cais.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Compatibility with Black Studio TinyMCE Widget’ is closed to new replies.