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.

(no description)

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

Defines 1 class

plugin:: (2 methods):
  is_enabled()
  get_plugin_info()


Class: plugin  - X-Ref

Tiny Editor Plugin class.

This class must be implemented by any Moodle plugin adding TinyMCE features.

It should optionally implement the following interfaces:
- plugin_with_buttons: to add buttons to the TinyMCE toolbar
- plugin_with_menuitems
- plugin_with_configuration: to add configuration to the TinyMCE editor

is_enabled(context $context,array $options,array $fpoptions,?editor $editor = null)   X-Ref
Whether the plugin is enabled

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
return: boolean

get_plugin_info(context $context,array $options,array $fpoptions,?editor $editor = null)   X-Ref
Get the plugin information for the plugin.

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
return: array