Search moodle.org's
Developer Documentation

See Release Notes
Long Term Support Release

  • Bug fixes for general core bugs in 4.1.x will end 13 November 2023 (12 months).
  • Bug fixes for security issues in 4.1.x will end 10 November 2025 (36 months).
  • PHP version: minimum PHP 7.4.0 Note: minimum PHP version has increased since Moodle 4.0. PHP 8.0.x is supported too.

Differences Between: [Versions 401 and 402] [Versions 401 and 403]

(no description)

File Size: 589 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_plugins()   X-Ref
Get a list of the disabled plugins.

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[]