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.

TinyMCE text editor integration.

Copyright: 2009 Petr Skoda (http://skodak.org)
License: http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
File Size: 263 lines (10 kb)
Included or required: 1 time
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class


Class: tinymce_texteditor  - X-Ref

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

return: bool

get_supported_formats()   X-Ref
Returns array of supported text 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

head_setup()   X-Ref
Sets up head code if necessary.


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

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

get_init_params($elementid, array $options=null)   X-Ref
No description

parse_toolbar_setting($customtoolbar)   X-Ref
Parse the custom toolbar setting.

param: string $customtoolbar
return: array csv toolbar lines

get_plugin($plugin)   X-Ref
Gets a named plugin object. Will cause fatal error if plugin doesn't
exist. This is intended for use by plugin files themselves.

param: string $plugin Name of plugin e.g. 'moodleemoticon'
return: editor_tinymce_plugin Plugin object

get_tinymce_base_url()   X-Ref
Equivalent to tinyMCE.baseURL value available from JavaScript,
always use instead of /../ when referencing tinymce core code from moodle plugins!

return: moodle_url url pointing to the root of TinyMCE javascript code.