Adds an Add Panopto Video button to Moodle’s TinyMCE editor so teachers and students can insert a Panopto video into any TinyMCE field (labels, forum posts, quiz questions, and so on).
This is the editor button to use on Moodle 5.0 and later. Sites still using Atto can use the Atto Panopto button instead.
- Teachers and students click Add Panopto Video in TinyMCE and pick a video.
- Administrators install the plugin, enable TinyMCE, and make sure the Panopto block is set up.
- A supported Moodle version. Each GitHub release lists the Moodle versions that zip supports — check those notes and pick the release that matches your site.
- The Panopto block
- Moodle’s External tool (LTI) module and a Panopto LTI tool
- The TinyMCE editor enabled (Site administration → Plugins → Text editors → Manage editors)
- The course provisioned with Panopto through the block
The button only lists LTI tools whose URL matches the Panopto server that course is provisioned to.
- Download a release from GitHub.
- In Moodle, go to Site administration → Plugins → Install plugins.
- Drop the zip onto the install page and complete the upgrade.
- Go to Site administration → Plugins → Text editors → TinyMCE editor and confirm Add Panopto Video is listed.
- Put TinyMCE at the top of Manage editors if it is not already the default.
The button then appears in TinyMCE on the site. Users who should see it need the tiny/panoptoltibutton:use capability (teachers and students have it by default on a new install).
- In a TinyMCE field, put the cursor where the video should go.
- Click Add Panopto Video.
- Select the session in the Panopto window. The embed is inserted into the editor.
If you see an error asking you to provision the course, add the Panopto block to that course and provision a folder first.
From the Moodle root, after npm install:
cd lib/editor/tiny/plugins/panoptoltibutton/amd
npx grunt amd
To load unminified JavaScript in the browser, disable JS caching in config.php:
$CFG->cachejs = false;
- Bump
$plugin->versioninversion.php. - Zip the plugin (omit
.gitandnode_modules) and install it as a new release.