Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 4.3.x will end 7 October 2024 (12 months).
  • Bug fixes for security issues in 4.3.x will end 21 April 2025 (18 months).
  • PHP version: minimum PHP 8.0.0 Note: minimum PHP version has increased since Moodle 4.1. PHP 8.2.x is supported too.

Differences Between: [Versions 401 and 403]

(no description)

File Size: 587 lines (19 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class


Class: manager  - X-Ref

Tiny Editor Plugin manager.

get_plugin_configuration(context $context,array $options = [],array $fpoptions = [],?editor $editor = null)   X-Ref
Get the configuration for all plugins.

param: context $context The context that the editor is used within
param: array $options The options passed in when requesting the editor
param: array $fpoptions The filepicker options passed in when requesting the editor
param: editor $editor The editor instance in which the plugin is initialised

get_tinymce_buttons()   X-Ref
Get a list of the buttons provided by this plugin.

return: string[]

get_tinymce_menuitems()   X-Ref
Get a list of the menu items provided by this plugin.

return: string[]

get_available_plugins()   X-Ref
Return a list of all available plugins, including both TinyMCE shipped, and Moodle add-onis.

Each plugin is returned as an array element containing:
- a list of buttons (if applicable); and
- a list of menuitems (if applicable).

Note: Not all plugins include buttons, and not all plugins include menuitems.
These array keys are optional.

return: array

get_shipped_plugins()   X-Ref
Return a list of all available plugins built into TinyMCE and not shipped as separate Moodle plugins.

Each plugin is returned as an array element containing:
- a list of buttons (if applicable); and
- a list of menuitems (if applicable).

Note: Not all plugins include buttons, and not all plugins include menuitems.
These array keys are optional.

return: array

get_tinymce_plugins()   X-Ref
Get a list of the core plugins with their button, and menuitem, configuration.

return: array[]

get_disabled_tinymce_plugins()   X-Ref
Get a list of the built-in TinyMCE plugins which we want to disable.

These are usually disabled because we have replaced them, or they are not compatible with Moodle in some way.

return: string[]

get_moodle_plugins()   X-Ref
Get a list of the Moodle plugins with their button, and menuitem, configuration.

return: array[]

premium_plugins_enabled()   X-Ref
Check whether premium plugins are configured and enabled.

return: bool

get_premium_plugins()   X-Ref
Get a list of the Tiny Premium plugins with their button, and menuitem, configuration.

Note: This only includes _compatible_ premium plugins.
Some premium plugins *may not* be compatible with Moodle, and some may require additional configuration.

return: array[]