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.
The entirety of the themes CSS is inserted into the TinyMCE editor.
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.
Choose one of the following installation methods:
- 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.
- You can also install the plugin by copying the contents of this directory to
{your/moodle/dirroot}/public/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
2025 oncampus GmbH support@oncampus.de