Tiny AI Prompt Generator

TinyMCE ::: tiny_aipromptgen
Maintained by Boban Blagojević
Tiny AI Prompt Generator is a self-contained TinyMCE plugin for Moodle. It allows teachers to build pedagogical prompts through a guided interface and generate AI responses using OpenAI or a local Ollama server, directly within the editor.

Tiny AI Prompt Generator 1.3

Moodle 4.1, 4.2, 4.3, 4.4, 4.5, 5.0, 5.1
Released: asteazkena, 2026(e)ko otsailakren 4(e)an, 09:14(e)tan

Changelog

All notable changes to this project will be documented in this file.

[1.3] - 2026-02-04

Fixed

  • Fixed JavaScript string keys in ui.js to use underscores instead of colons, matching the language file updates from v1.2.
  • Prompt generation now correctly displays localized strings instead of raw string identifiers.

[1.2] - 2026-02-04

Changed

  • Refactored cURL implementation to use Moodle's curl class for better proxy support and security.
  • Renamed global functions to follow Moodle's frankenstyle naming conventions.
  • Updated language string identifiers to use underscores instead of colons (Moodle standard).
  • Improved CSS compliance with Moodle coding standards (removed !important, fixed formatting).
  • Split JavaScript variable declarations to comply with ESLint rules.

Added

  • Implemented Moodle Privacy API with null provider (plugin does not store personal data).
  • Extended CI matrix to test against Moodle 4.1 through 5.1.
  • Added compatibility table to README.

Fixed

  • Fixed class brace placement in PHP files to comply with Moodle coding standards.
  • Corrected capability name validation in plugininfo.php.
  • Resolved all CSS and JavaScript linting errors.

[1.1] - 2026-02-01

Changed

  • Improved context awareness: Automatically detects context (Topic and Lesson title) from the Moodle page when opening the editor.
  • Refined content insertion: Fixed issues with missing line breaks when inserting plain text or raw content into the editor.
  • Enhanced UX: Added visual streaming status indicators (Connecting, Receiving, Finished) in the AI response modal.
  • Improved "Send to AI" feedback: Button now shows "Generating..." state for non-streaming providers.

Fixed

  • Fixed breadcrumb-based topic detection to exclude common Moodle UI terms like "Settings" or "General".
  • Resolved various linting and PHPDoc errors to comply with Moodle coding standards.
  • Added example context to Mustache templates for better CI/CD integration.

Added

  • GitHub Actions CI workflow for automated testing and linting.

[1.0] - 2026-01-31

Added

  • Initial release of the Tiny AI Prompt Generator plugin.
  • Seamless integration with TinyMCE editor in Moodle.
  • AI-assisted prompt builder interface.
  • Rich text and HTML copying capabilities.
  • Configurable settings for site administrators.

Version information

Version build number
2026020403
Version release name
1.3
Maturity
Bertsio egonkorra
MD5 Sum
4a12521dff22fcbd6483ac07d64ab04e
Supported software
Moodle 4.1, Moodle 4.2, Moodle 4.3, Moodle 4.4, Moodle 4.5, Moodle 5.0, Moodle 5.1
  • Latest release for Moodle 4.1
  • Latest release for Moodle 4.2
  • Latest release for Moodle 4.3
  • Latest release for Moodle 4.4
  • Latest release for Moodle 4.5
  • Latest release for Moodle 5.0
  • Latest release for Moodle 5.1

Version control information

Version control system (VCS)
GIT
VCS repository URL

Default installation instructions for plugins of the type TinyMCE

  1. Make sure you have all the required versions.
  2. Download and unpack the module.
  3. Place the folder (eg "myeditor") in the "lib/editor/tiny/plugins" subdirectory.
  4. Visit http://yoursite.com/admin to finish the installation