Insert Media gallery

TinyMCE ::: tinymce_mediagallery
Maintained by Adam Olley
Allows you to have carousels of a media gallery or galleries displayed in your course in labels and such.
Latest release:
60 sites
7 fans
Current versions available: 2

When used in conjuction with the TinyMCE plugin ( this plugin allows you to have carousels of a gallery or galleries displayed in your course in labels and such.

This plugin requires the Media collection activity be installed (

This plugin was written by Adam Olley <> for the University of New South Wales (


This plugin is part of set Media gallery.


Screenshot #0


Adam Olley (Lead maintainer)
Please login to view contributors details and/or to contact them

Comments RSS

Show comments
  • Anthony Borrow
    Wed, May 21, 2014, 10:29 AM

    Many thanks for sharing this plugin with the Moodle community. Please review the validation results and fix all of the issues mentioned. These changes are typically pretty easy to make but if you have any questions just let us know. Here is what shows up currently:

    Warning Maturity information ($plugin->maturity) not found in version.php
    Warning Release name ($plugin->release) not found in version.php

    Please consider adding a screenshot of your plugin to help folks get an idea of what it looks like when installed. I think showing the popup box would be helpful and would encourage adding instructions for getting the mediagallery button on the TinyMCE editor. I was successfully able to install the plugin and it appears to function as expected. Once I played with this I understood better what you meant about the filter. They work hand and hand with each other.

    It is encouraged to follow Moodle's coding style as outlined in:

    Tthe code checker plugin can be quite helpful in fine tuning your code and can be found at:

    You may wish to consider using that tool to further improve your plugin. Below, are the initial results:

    Files found: 6
    lib/editor/tinymce/plugins/mediagallery/mediagallery.php - 0 error(s) and 2 warning(s)
    lib/editor/tinymce/plugins/mediagallery/tinymce/editor_plugin.js - 2 error(s) and 0 warning(s)
    lib/editor/tinymce/plugins/mediagallery/tinymce/js/mediagallery.js - 26 error(s) and 0 warning(s)
    Total: 28 error(s) and 2 warning(s)

    Most of those appear to be whitespace issues so nothing major.

    I did mention the question about the icon.svg file that was not being found when the link was created. Overall, it looks good and once we have the issue with resolved we can get these all approved. Thanks for your speed response to these issues. For now I will mark this as needing more work. Peace - Anthony
  • Wed, May 21, 2014, 12:30 PM
    Hi Anthony,

    Newest version addresses all your issues: version.php, codingstyle, added a screenshot and have updated the with a Post-Install section that explains briefly how to add the button to tinymce.
Please login to post comments