← Back to archive

Snippet for TinyMCE

tiny_snippet
camp Tier 2 · Verified
Actively maintained · updated 6 d ago
Fully free

Insert reusable HTML snippets, such as buttons or embedded videos, from a button on Moodle's TinyMCE editor toolbar.

reported by the source platform · not verified or archived by the registry

Download and compatibility

1.0.5 Moodle 4.3 – 5.3
Verified against source
verification ledger

Source tagged by maintainer

github.com/justinhunt/moodle-tiny_snippet @ v1.0.5 · commit 4c054717a724

Rebuilt deterministically from that tag

canonical ZIP, byte-identical on every rebuild

Artifact hash recorded in the public index

sha256 5ae49e55f2e9043023bc5818e2936e153111d1f14b984db9a9be12dcab0c1085

Release signed · trusted publishing

planned — TUF signing (RFC §4.3)

Recorded in public transparency log

planned — Sigstore/Rekor (RFC §4.3)

Every step is independently verifiable. CAMP never modifies plugin code; it proves the ZIP you install is exactly what the maintainer published. Verified 28 Oct 2026.
Code check ?: 970 errors · 73 warnings
phplintphpcs970 | 73files9amd buildrebuilt OperatorSpacing×207DisallowTabIndent×107ValidVariableName×56ScopeIndent×50
composer require justinhunt/moodle-tiny_snippet
First time? One-time Composer setup, or download the ZIP and install it through Moodle.

About

Site administrators define snippets: small pieces of HTML with variables in them, such as a styled button, a callout box or an embedded YouTube video. Teachers then pick a snippet from the Snippets button on the TinyMCE toolbar, fill in a short form, and the finished HTML is inserted into the text.

Snippets: each one has a name, instructions for the person inserting it, an HTML body with {{variable}} placeholders, and default values for those variables. A default given as a list separated by | (for example primary|warning|success) becomes a drop-down in the form.

Presets: ready-made snippets such as a fancy button, a jumbotron and a YouTube embed can be loaded and adapted from the snippet settings page.

Use of the toolbar button is controlled by the tiny/snippet:use capability. Free, with no external services or API credentials needed.

Project

Maintainer
1 release in the archive
Plugin typeTinyMCE plugins · subplugin of editor_tiny · ships with Moodle
LinksChangelog
declared by the maintainer
DevelopmentOn GitHub: 3 stars · 2 forks · 1 open issues & PRs · Tested with moodle-plugin-ci
Upstream releasev1.0.5 · 28 Oct 2026
reported by the source platform · not verified or archived by the registry
Security advisoriesNone published