Generico for TinyMCE icon

Generico for TinyMCE

Maintained by Justin Hunt
A companion for Poodll's Generico filter. It makes available a select button, and a form for each Generico filter template from a popup dialog on the TinyMCE editor
Price option: Free

Supports Moodle 4.1-5.2 See all versions
Latest release: 1 week ago
Installations: 575
Downloads (last 90 days): 361

Frankenstyle name: tiny_generico
TinyMCE

Description

The Generico Widgets icon on the TinyMCE toolbar works with the Generico filter to provide a simple way to insert Generico filter strings into Moodle. Instead of typing filter strings by hand, teachers pick a widget from a dialog, fill in a short settings form, and a correctly formed filter string is inserted into the text.

Tiny Generico supports templates from both generations of the Generico filter:

  • Generico (filter_generico) — the classic, config-based filter, using {GENERICO:...} strings.
  • Generico Two (filter_genericotwo) — the new database-backed filter with Mustache templates, using {G2:...} strings.

Either filter (or both) can be installed. The widget picker lists whichever templates are available, in labelled groups when both filters contribute.

Using Generico for TinyMCE

Look for the Generico Widgets icon on the text editor toolbar (it is also available from the editor menu). Clicking it opens a dialog listing the Generico widgets available on your site. Choose the widget you need and, if it has variables, a settings form appears — pre-filled with the template's defaults and showing any instructions the template author provided. Click Insert and the finished filter string is placed in the editor. When the page is viewed, the filter replaces it with the rendered widget.

Only relevant widgets are offered: templates from filters that are not active in the current context are skipped, hidden Generico templates are not shown, and Generico Two templates honour their own per-context restrictions.

Requirements

This plugin is for Moodle's TinyMCE editor and requires Moodle 4.3 or greater. At least one of the Generico filters must be installed and enabled (Generico Two itself requires Moodle 4.5 or greater). Tiny Generico is free and needs no external services or API credentials.

Installation

You can install directly from this page if the "Install" button appears at the page top right.

If using zip, first download and unzip the file, and place the "generico" folder in your Moodle's /lib/editor/tiny/plugins folder. Or use git directly from the /lib/editor/tiny/plugins folder, ie
git clone https://github.com/justinhunt/moodle-tiny_generico.git generico

Then visit your site admin's notifications page. The plugin installer will walk you through the installation process. There are no plugin settings — the widget list comes entirely from the Generico filters' template configuration.

Contributors

Awards

Privacy friendly
Early bird 4.3
Early bird 4.5
Early bird 5.0
Early bird 5.1
Early bird 5.2