Title: [Plugin: Black Studio TinyMCE Widget] Insert NextGEN gallery does not work
Last modified: August 20, 2016

---

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

 *  Resolved [Ulfsby Webdesign](https://wordpress.org/support/users/sulfsby/)
 * (@sulfsby)
 * [14 years, 5 months ago](https://wordpress.org/support/topic/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.
 * [http://wordpress.org/extend/plugins/black-studio-tinymce-widget/](http://wordpress.org/extend/plugins/black-studio-tinymce-widget/)

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

 *  Plugin Author [Marco Chiesi](https://wordpress.org/support/users/marcochiesi/)
 * (@marcochiesi)
 * [14 years, 5 months ago](https://wordpress.org/support/topic/plugin-black-studio-tinymce-widget-insert-nextgen-gallery-does-not-work/#post-2470243)
 * 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](https://wordpress.org/support/users/marcochiesi/)
 * (@marcochiesi)
 * [14 years, 5 months ago](https://wordpress.org/support/topic/plugin-black-studio-tinymce-widget-insert-nextgen-gallery-does-not-work/#post-2470244)
 * See the thread I opened in the NextGEN forum regarding this issue:
    [http://wordpress.org/support/topic/plugin-nextgen-gallery-shortcode-popup-issue-with-custom-editor-instances](http://wordpress.org/support/topic/plugin-nextgen-gallery-shortcode-popup-issue-with-custom-editor-instances)
 *  Plugin Author [Marco Chiesi](https://wordpress.org/support/users/marcochiesi/)
 * (@marcochiesi)
 * [14 years, 5 months ago](https://wordpress.org/support/topic/plugin-black-studio-tinymce-widget-insert-nextgen-gallery-does-not-work/#post-2470251)
 * As a temporary workaround you may apply the following modification in NextGEN
   source code:
 * Around line 67 of admin/tinymce/tinymce.js
    replace
 *     ```
       window.tinyMCE.execInstanceCommand('content', 'mceInsertContent', false, tagtext);
       ```
   
 * with
 *     ```
       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](http://code.google.com/p/nextgen-gallery/issues/detail?id=452)
 *  Thread Starter [Ulfsby Webdesign](https://wordpress.org/support/users/sulfsby/)
 * (@sulfsby)
 * [14 years, 5 months ago](https://wordpress.org/support/topic/plugin-black-studio-tinymce-widget-insert-nextgen-gallery-does-not-work/#post-2470252)
 * Thank you very much for following up this.
 *  Plugin Author [Marco Chiesi](https://wordpress.org/support/users/marcochiesi/)
 * (@marcochiesi)
 * [14 years, 4 months ago](https://wordpress.org/support/topic/plugin-black-studio-tinymce-widget-insert-nextgen-gallery-does-not-work/#post-2470306)
 * 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 ‘[Plugin: Black Studio TinyMCE Widget] Insert NextGEN gallery does not
work’ is closed to new replies.

 * ![](https://ps.w.org/black-studio-tinymce-widget/assets/icon.svg?rev=2627604)
 * [Black Studio TinyMCE Widget](https://wordpress.org/plugins/black-studio-tinymce-widget/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/black-studio-tinymce-widget/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/black-studio-tinymce-widget/)
 * [Active Topics](https://wordpress.org/support/plugin/black-studio-tinymce-widget/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/black-studio-tinymce-widget/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/black-studio-tinymce-widget/reviews/)

 * 5 replies
 * 2 participants
 * Last reply from: [Marco Chiesi](https://wordpress.org/support/users/marcochiesi/)
 * Last activity: [14 years, 4 months ago](https://wordpress.org/support/topic/plugin-black-studio-tinymce-widget-insert-nextgen-gallery-does-not-work/#post-2470306)
 * Status: resolved