Moodle Plugins directory: InjectCSS: Versions: 5.0.1 | Moodle.org
InjectCSS
InjectCSS 5.0.1
Inject CSS
This plugin inserts the CSS of the selected Moodle theme into the TinyMCE editor to ensure that the text's appearance in the editor matches how it will actually display.
Features
The entirety of the themes CSS is inserted into the TinyMCE editor.
Usage
Make sure that the plugin is enabled under Site administration > Plugins > Text editors > TinyMCE editor > Inject CSS. The CSS of the theme should be inserted automatically into the TinyMCE editor. No further configuration is required.
Installation
Choose one of the following installation methods:
Installation via ZIP file
- Log in to your Moodle site as an administrator and go to Site administration > Plugins > Install plugins.
- Upload the ZIP file containing the plugin code. You should only be prompted to add extra details if your plugin type is not automatically detected.
- Check the plugin validation report and finish the installation.
Installing manually
- You can also install the plugin by copying the contents of this directory to
{your/moodle/dirroot}/lib/editor/tiny/plugins/injectcss - Afterwards, log in to your Moodle site as an administrator and go to Site administration > Notifications to complete the installation.
- Alternatively, run the following command in the Moodle root directory:
$ php admin/cli/upgrade.php
System Requirements and Dependencies
This plugin has so far only been tested on Moodle 4.5.
Known limitations
The Plugin only works with the 'TinyMCE editor'. It does not work with the 'Atto HTML editor' or the 'Plain text area'.
Language support
There is no need for translations since it only inserts the CSS of the theme.
License
2025 oncampus GmbH support@oncampus.de
This program is free software: you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free Software
Foundation, either version 3 of the License, or (at your option) any later
version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with
this program. If not, see https://www.gnu.org/licenses/.
Version information
- Version build number
- 2025120500
- Version release name
- 5.0.1
- Can be updated from
- 0.1.0 (2025112400), 1.0.0 (2025112800)
- Maturity
- Stable version
- MD5 Sum
- 2b8328b9410d5727461fa87e05da0f53
- Supported software
- Moodle 5.0, Moodle 5.1
- Latest release for Moodle 5.0
- Latest release for Moodle 5.1
Version control information
- Version control system (VCS)
- GIT
- VCS repository URL
- VCS branch
- MOODLE_501_STABLE
- VCS tag
- v5.0.1
Default installation instructions for plugins of the type TinyMCE
- Make sure you have all the required versions.
- Download and unpack the module.
- Place the folder (eg "myeditor") in the "lib/editor/tiny/plugins" subdirectory.
- Visit http://yoursite.com/admin to finish the installation