Support » Plugins and Hacks » [Resolved] [Plugin: Black Studio TinyMCE Widget] Insert NextGEN gallery does not work

[Resolved] [Plugin: Black Studio TinyMCE Widget] Insert NextGEN gallery does not work

  • I updated to version 0.8.2, and insert WodPress media now works fine, thank you.

    However insert NextGEN gallery does not work. I am not sure this is a problem by the Black Studio plugin or NextGEN gallery. NextGEN puts a button in the edit menue that also shows in the Black Studio widget. It normally inserts a shortcode in a page or post, but that does not happen in the widget. If I write the shortcode manually, the gallery displays however.

    Since NextGEN gallery is one of the most popular plugins, it would be nice to make it work in the Black Studio widget.


Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Marco Chiesi


    Hello Stig,
    I gave a look at the source code of NextGEN Gallery, in particular the script that handles the popup and shortcode button. When a user selects the deisred content to be addedd as a shortcode, the script looks for a (wysiwyg) textarea with an hardcoded name (“content”), which only works for post/pages content areas, and not for other editor instances (not limited to TinyMCE widgets).
    I will contact NextGEN devs and ask them for changing this behavior: it would make more sense if the script uses the name of editor instance that opened the popup instead of an hardcoded name.

    Plugin Author Marco Chiesi


    Plugin Author Marco Chiesi


    As a temporary workaround you may apply the following modification in NextGEN source code:

    Around line 67 of admin/tinymce/tinymce.js

    window.tinyMCE.execInstanceCommand('content', 'mceInsertContent', false, tagtext);


    activeEditor = window.tinyMCE.activeEditor.id;
    window.tinyMCE.execInstanceCommand(activeEditor, 'mceInsertContent', false, tagtext);

    Hopefully this mod will appear in future NextGEN releases, it has been posted to their tracker. See http://code.google.com/p/nextgen-gallery/issues/detail?id=452

    Thank you very much for following up this.

    Plugin Author Marco Chiesi


    I confirm this issue has been fixed in release 1.9.2 of NextGEN gallery plugin.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘[Resolved] [Plugin: Black Studio TinyMCE Widget] Insert NextGEN gallery does not work’ is closed to new replies.