H5P button plugin for TinyMCE editor

TinyMCE ::: tinymce_h5p
Maintained by Kateryna Degtyariova, Catalyst IT
Plugin creates a new H5P button in TinyMCE editor toolbar allowing to add and edit H5P blocks inside the editor.
Latest release:
Current versions available: 1


H5P Plugin for TinyMCE Editor

What is this?

This is a plugin which adds a new button in TinyMCE editor allowing to insert H5P content. The functionality of this button is similar to the H5P button in Atto text editor.


  • Moodle versoin 3.9+ with TinyMCE 3.5+
  • PHP 7.2+


main is considered stable and supports the following versions of Moodle:

Moodle version Branch PHP
Moodle 3.9+ main 7.2


Installing via Moodle plugin directory

The plugin can be installed via Moodle plugin directory: https://moodle.org/plugins/tinymce_h5p

Installing via uploaded ZIP file

  1. Log in to your Moodle site as an admin and go to Site administration > Plugins > Install plugins.
  2. Upload the ZIP file with the plugin code. You should only be prompted to add extra details if your plugin type is not automatically detected.
  3. Check the plugin validation report and finish the installation.

Installing via Git

cd {your/moodle/dirroot}/lib/editors/tinymce/plugins
git clone git@github.com:catalyst/tinymce_h5p.git h5p

Afterwards, log in to your Moodle site as an admin and go to Site administration > Notifications to complete the installation.

Alternatively, you can run

$ php admin/cli/upgrade.php

to complete the installation from the command line.

Installing manually

The plugin can be also installed by putting the plugin files into


After files are placed in the correct directory the istallation can proceed in the same way as with Installing via Git


After the plugin is installed it should be visible in Site administration > Plugins > Text editors > TinyMCE HTML editor > General settings:

By default the button is placed at the end of the lowest row of buttons in TinyMCE toolbar, which usually has more than one row. Therefore, in order to see the H5P button the Toolbar Toggle must be clicked first in TinyMCE toolbar:

It is possible to place TinyMCE at any position in any row. To do so you need to edit settings inside Editor Toolbar text area, which can be accessed from Site administration > Plugins > Text editors > TinyMCE HTML editor > General settings scrolling down to Settings > Editor Toolbar. Usually there are pre-filled lines corresponding to a default configuration. Each line of text is configuring a line of buttons in the editor toolbar. Placing the text value tinymce_h5p inside the text controls the position of the button in the toolbar:


Clicking the button opens a small dialog allowing the user to add a new or edit an existing H5P block properties inside the editor depending on the current selection. Double-clicking on an existing H5P block inside the editor opens the dialog with properties automatically.

Clicking on "Browse Repositories" button in the dialog opens a file picker allowing to upload H5P packages or use embedded or recently uploaded H5P packages.

The plugin dialog has a few other options:

  • Allow download checkbox will add the Download button to H5P content when it is displayed on the page to allow downloading the package by users.
  • Embed button checkbox will add the Embed button to H5P content when it is displayed on the page and provide the embed code to be used by 3rd parties.
  • Copyright button* checkbox will add the **Copyright button to H5P content when it is displayed on the page with the copyright information about H5P package.



If you have issues please log them in github here


Please note our time is limited, so if you need urgent support or want to sponsor a new feature then please contact Catalyst IT Australia:


This plugin was developed by Catalyst IT Australia:


Catalyst IT


2021 Catalyst IT

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see https://www.gnu.org/licenses/.


Screenshot #0


Kateryna Degtyariova (Lead maintainer)
Please login to view contributors details and/or to contact them

Comments RSS

Show comments
Please login to post comments