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: 238 lines (8 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class


Class: editor  - X-Ref

Tiny Editor.

__construct()   X-Ref
Instantiate the new editor instance.


set_default_configuration(manager $manager)   X-Ref
Set the default configuration for the editor.

param: manager $manager The editor manager

get_default_configuration()   X-Ref
Fetch the current defautl configuration.

return: \stdClass|null The default configuration or null if not set.

reset_default_configuration()   X-Ref
Reset the default configuration.


is_default_configuration_set()   X-Ref
Check if the default configuration is set.

return: bool True if the default configuration is set.

supported_by_browser()   X-Ref
Is the current browser supported by this editor?

return: bool

get_supported_formats()   X-Ref
List of supported text field formats.

return: array

get_preferred_format()   X-Ref
Returns text format preferred by this editor.

return: int

supports_repositories()   X-Ref
Does this editor support picking from repositories?

return: bool

use_editor($elementid, array $options = null, $fpoptions = null)   X-Ref
Use this editor for given element.

param: string $elementid
param: array $options
param: null $fpoptions