Skip to content

andurif/moodle-tinymce_html_components

Repository files navigation

Tiny plugin to insert HTML components

Moodle plugin which allows you to insert in the Tiny editor some html components.
See README french verison here.

Goals

The main goal of the plugin is to allow course managers and teacher to improve their courses displays and interactivity thanks to html components without coding it directly.
These components (mostly from Bootstrap) are added within the Tiny editor and customizable thanks to available options.

Requirements

  • Moodle 4.1 or later. -> Tested on Moodle 4.1 to 4.5.
  • Usage of Tiny editor
  • Usage Boost theme or a theme which extends Boost theme (use bootstrap).

Installation

  1. Local plugin installation
  • With git:

git clone https://github.com/andurif/moodle-tinymce_html_components.git lib/editor/tinymce/plugins/html_components

  • Download way:

Download the zip from https://github.com/andurif/moodle-tinymce_html_components/archive/refs/heads/main.zip , unzip it in lib/editor/tinymce/plugins/ folder and rename it "html_components" if necessary or install it from the "Install plugin" page if you have the right permissions.

  1. Then visit your Admin Notifications page to complete the installation.

Presentation / Features

For now this plugin allows you to easily add these html/bootstrap components:

  • Accordion
  • Alert
  • Button
  • Jumbotron
  • Navigation menu
  • Card

Be careful, for some component you will have to edit html source code in editor to change display (Acccordion component for example to edit text or to change attributess id value if you use several to avoid conflicts).

In the newest version of the plugin a first integration of personalized components has been implemented.
This integration allows a user to create a custom component and to save it in order to reuse it later via the plugin.

Possible improvements

  • Integration of other components, eg icons, timelines, carousels, breadcrumps ... (some developments are in progress).
  • Add other options to facilitate the integration of components by users.
  • Personalization linked to the theme used (use the primary variable css $ for example).
  • Code optimization.

This is a first version of the plugin so feel free to propose some improvements and/or developments/pull requests to improve this plugin.

Abous us

Université Clermont Auvergne - UCA Squad

Contributors

andurif - Cedric-Gerbault - cameron1729 - SquirmDog

© UCA - 2025

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •